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.300-beta+b2186e2cd1f968c931b0e151fdd7c839f3d1e9cf
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