Decompresses an array of bytes.
'Declaration
Public MustOverride Function Decompress( _
ByVal () As Byte, _
ByVal As Integer, _
ByVal As Integer, _
ByRef As Boolean, _
ByRef () As Byte, _
ByRef remaining As Integer _
) As Integer
'Usage
Dim instance As Decompressor
Dim buffer() As Byte
Dim offset As Integer
Dim count As Integer
Dim endOfData As Boolean
Dim decompressed() As Byte
Dim remaining As Integer
Dim value As Integer
value = instance.Decompress(buffer, offset, count, endOfData, decompressed, remaining)
public abstract int Decompress(
byte[] ,
int ,
int ,
ref bool ,
out byte[] ,
out int remaining
)
Parameters
- buffer
- An array of bytes to decompress. A maximum of bytes are taken from this array and decompressed.
- offset
- The byte offset in at which to begin taking the data to decompress.
- count
- The maximum number of bytes to be taken from .
- endOfData
- true if the end of the compressed data has been reached; false otherwise.
- decompressed
- An array of bytes containing the decompressed data. Can be empty if no bytes were decompressed.
- remaining
- The number of unused bytes read from buffer the for decompression.
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