C# Class System.IO.Compression.Inflater

显示文件 Open project: dotnet/corefx Class Usage Examples

Private Properties

Property Type Description
DeallocateInputBufferHandle void
Dispose void
Inflate ZLibNative.ErrorCode
InflateInit void
Inflater System.Diagnostics
ReadInflateOutput ZLibNative.ErrorCode

Public Methods

Method Description
Dispose ( ) : void
Finished ( ) : bool

Returns true if the end of the stream has been reached.

Inflate ( byte &b ) : bool
Inflate ( byte bytes, int offset, int length ) : int
InflateVerified ( byte bufPtr, int length ) : int
NeedsInput ( ) : bool
SetInput ( byte inputBuffer, int startIndex, int count ) : void

Private Methods

Method Description
DeallocateInputBufferHandle ( ) : void

Frees the GCHandle being used to store the input buffer

Dispose ( bool disposing ) : void
Inflate ( ZLibNative flushCode ) : ZLibNative.ErrorCode
InflateInit ( int windowBits ) : void
Inflater ( int windowBits ) : System.Diagnostics

Initialized the Inflater with the given windowBits size

ReadInflateOutput ( byte bufPtr, int length, ZLibNative flushCode, int &bytesRead ) : ZLibNative.ErrorCode

Wrapper around the ZLib inflate function, configuring the stream appropriately.

Method Details

Dispose() public method

public Dispose ( ) : void
return void

Finished() public method

Returns true if the end of the stream has been reached.
public Finished ( ) : bool
return bool

Inflate() public method

public Inflate ( byte &b ) : bool
b byte
return bool

Inflate() public method

public Inflate ( byte bytes, int offset, int length ) : int
bytes byte
offset int
length int
return int

InflateVerified() public method

public InflateVerified ( byte bufPtr, int length ) : int
bufPtr byte
length int
return int

NeedsInput() public method

public NeedsInput ( ) : bool
return bool

SetInput() public method

public SetInput ( byte inputBuffer, int startIndex, int count ) : void
inputBuffer byte
startIndex int
count int
return void