|
PatternCompressorCompress(Byte, Int32, Int32) Method
|
Compresses length bytes of data in the given buffer, starting at offset.
Namespace: GSF.IO.CompressionAssembly: GSF.Core (in GSF.Core.dll) Version: 2.4.248-beta+a497a19de709fd99e2448886199a2c8824265ddf
Syntaxpublic int Compress(
byte[] buffer,
int offset,
int length
)
Public Function Compress (
buffer As Byte(),
offset As Integer,
length As Integer
) As Integer
public:
int Compress(
array<unsigned char>^ buffer,
int offset,
int length
)
member Compress :
buffer : byte[] *
offset : int *
length : int -> int
function Compress(buffer, offset, length);
View SourceParameters
- buffer Byte
- The buffer to be compressed.
- offset Int32
- The amount of data to ignore at the start of the buffer.
- length Int32
- The amount of data to be compressed. Must be a multiple of four.
Return Value
Int32The size, in bytes, of the compressed value.
ExceptionsException | Condition |
---|
ArgumentNullException | buffer cannot be null. |
ArgumentException | length must be a multiple of four. |
ArgumentOutOfRangeException | offset must be greater than or equal to zero. |
ArgumentOutOfRangeException | length must be greater than or equal to zero. |
ArgumentOutOfRangeException | length exceeds buffer array boundaries |
See Also