|
PatternCompressorCompress(Byte, Int32) Method
|
Compresses length bytes of data in the given buffer.
Namespace: GSF.IO.CompressionAssembly: GSF.Core (in GSF.Core.dll) Version: 2.4.257-beta+00aa2366fbb9ec75f636ebc7cfa610e3826a727c
Syntaxpublic int Compress(
byte[] buffer,
int length
)
Public Function Compress (
buffer As Byte(),
length As Integer
) As Integer
public:
int Compress(
array<unsigned char>^ buffer,
int length
)
member Compress :
buffer : byte[] *
length : int -> int function Compress(buffer, length);
View SourceParameters
- buffer Byte
- The buffer to be compressed.
- 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.
Exceptions| Exception | Condition |
|---|
| ArgumentNullException | buffer cannot be null. |
| ArgumentException | length must be a multiple of four. |
| ArgumentOutOfRangeException | length must be greater than or equal to zero. |
| ArgumentOutOfRangeException | length exceeds buffer array boundaries |
See Also