Compresses an array of bytes.
'Declaration
Public MustOverride Function Compress( _
ByVal () As Byte, _
ByVal As Integer, _
ByVal As Integer, _
ByVal As Boolean, _
ByRef () As Byte _
) As Integer
'Usage
Dim instance As Compressor
Dim buffer() As Byte
Dim offset As Integer
Dim count As Integer
Dim endOfData As Boolean
Dim compressed() As Byte
Dim value As Integer
value = instance.Compress(buffer, offset, count, endOfData, compressed)
public abstract int Compress(
byte[] ,
int ,
int ,
bool ,
out byte[]
)
Parameters
- buffer
- An array of bytes to compress. A maximum of bytes are taken from this array and compressed.
- offset
- The byte offset in at which to begin taking the data to compress.
- count
- The maximum number of bytes to be taken from .
- endOfData
- Indicates if this call ends the stream of data to compress.
- compressed
- An array of bytes containing the compressed data. Can be empty.
Return Value
The number of bytes written to the parameter.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2