WriterEndCompress Method

Compresses the data already written to the writer. If StartCompress has not been called, the data will be compressed from the start of the writer.

Definition

Namespace: Alteruna.Multiplayer.Core.PacketProcessing.Writer
Assembly: Alteruna (in Alteruna.dll) Version: 2.0.1+a1176e08a0b4a6bfd8fefeddde6163a16d29e5ab
C#
public int EndCompress(
	CompressionMethod method = CompressionMethod.GZip
)

Parameters

method  CompressionMethod  (Optional)
Compression method used.

Return Value

Int32
Number of bytes saved by compression.

See Also