Click or drag to resize

PatternCompressorCompress(Byte, Int32) Method

Compresses length bytes of data in the given buffer.

Namespace: GSF.IO.Compression
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.205-beta+5ef4169f3b1079d8b163dd363614f656bd140924
Syntax
public int Compress(
	byte[] buffer,
	int length
)
View Source

Parameters

buffer  Byte
The buffer to be compressed.
length  Int32
The amount of data to be compressed. Must be a multiple of four.

Return Value

Int32
The size, in bytes, of the compressed value.
Exceptions
ExceptionCondition
ArgumentNullExceptionbuffer cannot be null.
ArgumentExceptionlength must be a multiple of four.
ArgumentOutOfRangeExceptionlength must be greater than or equal to zero.
ArgumentOutOfRangeExceptionlength exceeds buffer array boundaries
See Also