C# Class System.IO.Compression.GZipStream

Inheritance: Stream
Afficher le fichier Open project: dotnet/corefx Class Usage Examples

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Private Methods

Méthode Description
CheckDeflateStream ( ) : void
ThrowStreamClosedException ( ) : void

Method Details

BeginRead() public méthode

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

BeginWrite() public méthode

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

CopyToAsync() public méthode

public CopyToAsync ( Stream destination, int bufferSize, CancellationToken cancellationToken ) : Task
destination Stream
bufferSize int
cancellationToken CancellationToken
Résultat Task

Dispose() protected méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

EndRead() public méthode

public EndRead ( IAsyncResult asyncResult ) : int
asyncResult IAsyncResult
Résultat int

EndWrite() public méthode

public EndWrite ( IAsyncResult asyncResult ) : void
asyncResult IAsyncResult
Résultat void

Flush() public méthode

public Flush ( ) : void
Résultat void

FlushAsync() public méthode

public FlushAsync ( CancellationToken cancellationToken ) : Task
cancellationToken CancellationToken
Résultat Task

GZipStream() public méthode

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

GZipStream() public méthode

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

GZipStream() public méthode

public GZipStream ( Stream stream, CompressionLevel compressionLevel ) : System.IO
stream Stream
compressionLevel CompressionLevel
Résultat System.IO

GZipStream() public méthode

public GZipStream ( Stream stream, CompressionLevel compressionLevel, bool leaveOpen ) : System.IO
stream Stream
compressionLevel CompressionLevel
leaveOpen bool
Résultat System.IO

GZipStream() public méthode

public GZipStream ( Stream stream, CompressionMode mode ) : System.IO
stream Stream
mode CompressionMode
Résultat System.IO

GZipStream() public méthode

public GZipStream ( Stream stream, CompressionMode mode, bool leaveOpen ) : System.IO
stream Stream
mode CompressionMode
leaveOpen bool
Résultat System.IO

Read() public méthode

public Read ( byte array, int offset, int count ) : int
array byte
offset int
count int
Résultat int

ReadAsync() public méthode

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

ReadAsync() public méthode

public ReadAsync ( byte array, int offset, int count, CancellationToken cancellationToken ) : Task
array byte
offset int
count int
cancellationToken CancellationToken
Résultat Task

ReadByte() public méthode

public ReadByte ( ) : int
Résultat int

Seek() public méthode

public Seek ( long offset, SeekOrigin origin ) : long
offset long
origin SeekOrigin
Résultat long

Seek() public méthode

public Seek ( long offset, System origin ) : long
offset long
origin System
Résultat long

SetLength() public méthode

public SetLength ( long value ) : void
value long
Résultat void

Write() public méthode

public Write ( byte array, int offset, int count ) : void
array byte
offset int
count int
Résultat void

WriteAsync() public méthode

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

WriteAsync() public méthode

public WriteAsync ( byte array, int offset, int count, CancellationToken cancellationToken ) : Task
array byte
offset int
count int
cancellationToken CancellationToken
Résultat Task