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.181-beta
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