FileEncoder.CompressData Method
Compresses the contents of the specified buffer.
[Visual Basic]
Public Function CompressData( _
ByVal inputBuffer As Byte(), _
ByVal inputLength As Integer, _
ByVal outputBuffer As Byte(), _
ByRef outputLength As Integer _
) As Boolean
[C#]
public bool CompressData(
byte[] inputBuffer,
int inputLength,
byte[] outputBuffer,
ref int outputLength
);
Parameters
- inputBuffer
- A byte array which contains the data to be compressed.
- inputLength
- An integer value which specifies the number of bytes to be compressed.
- outputBuffer
- A byte array which will contain the compressed data.
- outputLength
- An integer value which specifies the maximum number of bytes that can be copied into the output buffer.
Return Value
A boolean value which specifies if the method was successful or not. A return value of true indicates that the method call
completed successfully. A return value of false indicates that the method failed and the application should check the value
of the LastError property.
See Also