|   | PatternCompressorCompress(Byte) Method | 
        
        
            Compresses all of the data in the given buffer.
            
        
        Namespace: GSF.IO.CompressionAssembly: GSF.Core (in GSF.Core.dll) Version: 2.4.257-beta+00aa2366fbb9ec75f636ebc7cfa610e3826a727c
 Syntax
Syntaxpublic int Compress(
	byte[] buffer
)
Public Function Compress ( 
	buffer As Byte()
) As Integer
public:
int Compress(
	array<unsigned char>^ buffer
)
member Compress : 
        buffer : byte[] -> int function Compress(buffer);
Parameters
- buffer  Byte
- The buffer to be compressed.
Return Value
Int32The size, in bytes, of the compressed value.
 Exceptions
Exceptions| Exception | Condition | 
|---|
| ArgumentNullException | buffer cannot be null. | 
| ArgumentException | buffer length must be a multiple of four. | 
 See Also
See Also