C# Class System.IO.Compression.GZipStream

Inheritance: Stream
Datei anzeigen Open project: dotnet/corefx Class Usage Examples

Public Methods

Method Description
BeginRead ( byte array, int offset, int count, AsyncCallback asyncCallback, object asyncState ) : IAsyncResult
BeginWrite ( byte array, int offset, int count, AsyncCallback asyncCallback, object asyncState ) : IAsyncResult
CopyToAsync ( Stream destination, int bufferSize, CancellationToken cancellationToken ) : Task
EndRead ( IAsyncResult asyncResult ) : int
EndWrite ( IAsyncResult asyncResult ) : void
Flush ( ) : void
FlushAsync ( CancellationToken cancellationToken ) : Task
GZipStream ( System stream, System compressionLevel )
GZipStream ( System stream, System compressionLevel, bool leaveOpen )
GZipStream ( Stream stream, CompressionLevel compressionLevel ) : System.IO
GZipStream ( Stream stream, CompressionLevel compressionLevel, bool leaveOpen ) : System.IO
GZipStream ( Stream stream, CompressionMode mode ) : System.IO
GZipStream ( Stream stream, CompressionMode mode, bool leaveOpen ) : System.IO
Read ( byte array, int offset, int count ) : int
ReadAsync ( byte array, int offset, int count, System cancellationToken ) : System.Threading.Tasks.Task
ReadAsync ( byte array, int offset, int count, CancellationToken cancellationToken ) : Task
ReadByte ( ) : int
Seek ( long offset, SeekOrigin origin ) : long
Seek ( long offset, System origin ) : long
SetLength ( long value ) : void
Write ( byte array, int offset, int count ) : void
WriteAsync ( byte array, int offset, int count, System cancellationToken ) : System.Threading.Tasks.Task
WriteAsync ( byte array, int offset, int count, CancellationToken cancellationToken ) : Task

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

Method Description
CheckDeflateStream ( ) : void
ThrowStreamClosedException ( ) : void

Method Details

BeginRead() public method

public BeginRead ( byte array, int offset, int count, AsyncCallback asyncCallback, object asyncState ) : IAsyncResult
array byte
offset int
count int
asyncCallback AsyncCallback
asyncState object
return IAsyncResult

BeginWrite() public method

public BeginWrite ( byte array, int offset, int count, AsyncCallback asyncCallback, object asyncState ) : IAsyncResult
array byte
offset int
count int
asyncCallback AsyncCallback
asyncState object
return IAsyncResult

CopyToAsync() public method

public CopyToAsync ( Stream destination, int bufferSize, CancellationToken cancellationToken ) : Task
destination Stream
bufferSize int
cancellationToken CancellationToken
return Task

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

EndRead() public method

public EndRead ( IAsyncResult asyncResult ) : int
asyncResult IAsyncResult
return int

EndWrite() public method

public EndWrite ( IAsyncResult asyncResult ) : void
asyncResult IAsyncResult
return void

Flush() public method

public Flush ( ) : void
return void

FlushAsync() public method

public FlushAsync ( CancellationToken cancellationToken ) : Task
cancellationToken CancellationToken
return Task

GZipStream() public method

public GZipStream ( System stream, System compressionLevel )
stream System
compressionLevel System

GZipStream() public method

public GZipStream ( System stream, System compressionLevel, bool leaveOpen )
stream System
compressionLevel System
leaveOpen bool

GZipStream() public method

public GZipStream ( Stream stream, CompressionLevel compressionLevel ) : System.IO
stream Stream
compressionLevel CompressionLevel
return System.IO

GZipStream() public method

public GZipStream ( Stream stream, CompressionLevel compressionLevel, bool leaveOpen ) : System.IO
stream Stream
compressionLevel CompressionLevel
leaveOpen bool
return System.IO

GZipStream() public method

public GZipStream ( Stream stream, CompressionMode mode ) : System.IO
stream Stream
mode CompressionMode
return System.IO

GZipStream() public method

public GZipStream ( Stream stream, CompressionMode mode, bool leaveOpen ) : System.IO
stream Stream
mode CompressionMode
leaveOpen bool
return System.IO

Read() public method

public Read ( byte array, int offset, int count ) : int
array byte
offset int
count int
return int

ReadAsync() public method

public ReadAsync ( byte array, int offset, int count, System cancellationToken ) : System.Threading.Tasks.Task
array byte
offset int
count int
cancellationToken System
return System.Threading.Tasks.Task

ReadAsync() public method

public ReadAsync ( byte array, int offset, int count, CancellationToken cancellationToken ) : Task
array byte
offset int
count int
cancellationToken CancellationToken
return Task

ReadByte() public method

public ReadByte ( ) : int
return int

Seek() public method

public Seek ( long offset, SeekOrigin origin ) : long
offset long
origin SeekOrigin
return long

Seek() public method

public Seek ( long offset, System origin ) : long
offset long
origin System
return long

SetLength() public method

public SetLength ( long value ) : void
value long
return void

Write() public method

public Write ( byte array, int offset, int count ) : void
array byte
offset int
count int
return void

WriteAsync() public method

public WriteAsync ( byte array, int offset, int count, System cancellationToken ) : System.Threading.Tasks.Task
array byte
offset int
count int
cancellationToken System
return System.Threading.Tasks.Task

WriteAsync() public method

public WriteAsync ( byte array, int offset, int count, CancellationToken cancellationToken ) : Task
array byte
offset int
count int
cancellationToken CancellationToken
return Task