C# Class System.IO.Compression.DeflateManagedStream

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

Méthodes publiques

Méthode Description
BeginRead ( byte buffer, int offset, int count, AsyncCallback asyncCallback, object asyncState ) : IAsyncResult
DeflateManagedStream ( Stream stream, CompressionLevel compressionLevel ) : System.Diagnostics
DeflateManagedStream ( Stream stream, CompressionLevel compressionLevel, bool leaveOpen ) : System.Diagnostics
DeflateManagedStream ( Stream stream, CompressionMode mode ) : System.Diagnostics
DeflateManagedStream ( Stream stream, CompressionMode mode, bool leaveOpen ) : System.Diagnostics
EndRead ( IAsyncResult asyncResult ) : int
Flush ( ) : void
FlushAsync ( CancellationToken cancellationToken ) : Task
Read ( byte array, int offset, int count ) : int
ReadAsync ( byte array, int offset, int count, CancellationToken cancellationToken ) : Task
Seek ( long offset, SeekOrigin origin ) : long
SetLength ( long value ) : void
Write ( byte array, int offset, int count ) : void
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
DeflateManagedStream ( Stream stream, ZipArchiveEntry method ) : System.Diagnostics
DeflateManagedStream ( Stream stream, bool leaveOpen, IFileFormatReader reader ) : System.Diagnostics
DoMaintenance ( byte array, int offset, int count ) : void
EnsureCompressionMode ( ) : void
EnsureDecompressionMode ( ) : void
EnsureNotDisposed ( ) : void
InitializeDeflater ( Stream stream, bool leaveOpen, CompressionLevel compressionLevel ) : void

Sets up this DeflateManagedStream to be used for Deflation/Compression

InitializeInflater ( Stream stream, bool leaveOpen, IFileFormatReader reader = null, ZipArchiveEntry method = ZipArchiveEntry.CompressionMethodValues.Deflate ) : void

Sets up this DeflateManagedStream to be used for Inflation/Decompression

PurgeBuffers ( bool disposing ) : void
ReadAsyncCore ( Task readTask, byte array, int offset, int count, CancellationToken cancellationToken ) : Task
SetFileFormatWriter ( IFileFormatWriter writer ) : void
ThrowCannotReadFromDeflateManagedStreamException ( ) : void
ThrowCannotWriteToDeflateManagedStreamException ( ) : void
ThrowStreamClosedException ( ) : void
ValidateParameters ( byte array, int offset, int count ) : void
WriteAsyncCore ( byte array, int offset, int count, CancellationToken cancellationToken ) : Task
WriteDeflaterOutput ( ) : void

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

DeflateManagedStream() public méthode

public DeflateManagedStream ( Stream stream, CompressionLevel compressionLevel ) : System.Diagnostics
stream Stream
compressionLevel CompressionLevel
Résultat System.Diagnostics

DeflateManagedStream() public méthode

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

DeflateManagedStream() public méthode

public DeflateManagedStream ( Stream stream, CompressionMode mode ) : System.Diagnostics
stream Stream
mode CompressionMode
Résultat System.Diagnostics

DeflateManagedStream() public méthode

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

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

Flush() public méthode

public Flush ( ) : void
Résultat void

FlushAsync() public méthode

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

Seek() public méthode

public Seek ( long offset, SeekOrigin origin ) : long
offset long
origin SeekOrigin
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, CancellationToken cancellationToken ) : Task
array byte
offset int
count int
cancellationToken System.Threading.CancellationToken
Résultat Task