C# Class System.IO.Compression.DeflateStream

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

Private Properties

Свойство Type Description
AsyncOperationCompleting void
AsyncOperationStarting void
DeflateStream System.Buffers
DeflateStream System.Buffers
EnsureBufferInitialized void
EnsureCompressionMode void
EnsureDecompressionMode void
EnsureNoActiveAsyncOperation void
EnsureNotDisposed void
FlushAsyncCore System.Threading.Task
FlushBuffers void
InitializeBuffer void
InitializeDeflater void
InitializeInflater void
PurgeBuffers void
ReadAsyncCore Task
ThrowCannotReadFromDeflateStreamException void
ThrowCannotWriteToDeflateStreamException void
ThrowInvalidBeginCall void
ThrowStreamClosedException void
ValidateParameters void
WriteAsyncCore System.Threading.Task
WriteDeflaterOutput void
WriteDeflaterOutputAsync System.Threading.Task

Méthodes publiques

Méthode Description
BeginRead ( byte buffer, 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 ) : System.Threading.Task
DeflateStream ( System stream, System compressionLevel )
DeflateStream ( System stream, System compressionLevel, bool leaveOpen )
DeflateStream ( Stream stream, CompressionLevel compressionLevel ) : System.Buffers
DeflateStream ( Stream stream, CompressionLevel compressionLevel, bool leaveOpen ) : System.Buffers
DeflateStream ( Stream stream, CompressionMode mode ) : System.Buffers
DeflateStream ( Stream stream, CompressionMode mode, bool leaveOpen ) : System.Buffers
EndRead ( IAsyncResult asyncResult ) : int
EndWrite ( IAsyncResult asyncResult ) : void
Flush ( ) : void
FlushAsync ( CancellationToken cancellationToken ) : System.Threading.Task
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 ) : System.Threading.Task

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Private Methods

Méthode Description
AsyncOperationCompleting ( ) : void
AsyncOperationStarting ( ) : void
DeflateStream ( Stream stream, CompressionLevel compressionLevel, bool leaveOpen, int windowBits ) : System.Buffers

Internal constructor to specify the compressionlevel as well as the windowbits

DeflateStream ( Stream stream, CompressionMode mode, bool leaveOpen, int windowBits ) : System.Buffers

Internal constructor to check stream validity and call the correct initialization function depending on the value of the CompressionMode given.

EnsureBufferInitialized ( ) : void
EnsureCompressionMode ( ) : void
EnsureDecompressionMode ( ) : void
EnsureNoActiveAsyncOperation ( ) : void
EnsureNotDisposed ( ) : void
FlushAsyncCore ( CancellationToken cancellationToken ) : System.Threading.Task
FlushBuffers ( ) : void
InitializeBuffer ( ) : void
InitializeDeflater ( Stream stream, bool leaveOpen, int windowBits, CompressionLevel compressionLevel ) : void

Sets up this DeflateStream to be used for Zlib Deflation/Compression

InitializeInflater ( Stream stream, bool leaveOpen, int windowBits ) : void

Sets up this DeflateStream to be used for Zlib Inflation/Decompression

PurgeBuffers ( bool disposing ) : void
ReadAsyncCore ( Task readTask, byte array, int offset, int count, CancellationToken cancellationToken ) : Task
ThrowCannotReadFromDeflateStreamException ( ) : void
ThrowCannotWriteToDeflateStreamException ( ) : void
ThrowInvalidBeginCall ( ) : void
ThrowStreamClosedException ( ) : void
ValidateParameters ( byte array, int offset, int count ) : void
WriteAsyncCore ( byte array, int offset, int count, CancellationToken cancellationToken ) : System.Threading.Task
WriteDeflaterOutput ( ) : void
WriteDeflaterOutputAsync ( CancellationToken cancellationToken ) : System.Threading.Task

Writes the bytes that have already been deflated

Method Details

BeginRead() public méthode

public BeginRead ( byte buffer, int offset, int count, AsyncCallback asyncCallback, object asyncState ) : IAsyncResult
buffer 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 ) : System.Threading.Task
destination Stream
bufferSize int
cancellationToken System.Threading.CancellationToken
Résultat System.Threading.Task

DeflateStream() public méthode

public DeflateStream ( System stream, System compressionLevel )
stream System
compressionLevel System

DeflateStream() public méthode

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

DeflateStream() public méthode

public DeflateStream ( Stream stream, CompressionLevel compressionLevel ) : System.Buffers
stream Stream
compressionLevel CompressionLevel
Résultat System.Buffers

DeflateStream() public méthode

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

DeflateStream() public méthode

public DeflateStream ( Stream stream, CompressionMode mode ) : System.Buffers
stream Stream
mode CompressionMode
Résultat System.Buffers

DeflateStream() public méthode

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

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 ) : System.Threading.Task
cancellationToken System.Threading.CancellationToken
Résultat System.Threading.Task

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 System.Threading.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 ) : System.Threading.Task
array byte
offset int
count int
cancellationToken System.Threading.CancellationToken
Résultat System.Threading.Task