WriterEndEncrypt Method

Encrypts the data already written to the writer. If StartEncrypt has not been called, the data will be encrypted from the start of the writer.

Definition

Namespace: Alteruna.Multiplayer.Core.PacketProcessing.Writer
Assembly: Alteruna (in Alteruna.dll) Version: 2.0.2+dcdb8fba58ad1eb99205b1dc6265fd5b3b7cf8ec
C#
public int EndEncrypt(
	EncryptionMethod method = EncryptionMethod.Scramble
)

Parameters

method  EncryptionMethod  (Optional)
Encryption method used.

Return Value

Int32
Number of bytes saved by encryption.

See Also