C# Class System.IO.Compression.DeflateManagedStream

Inheritance: Stream
Show file Open project: dotnet/corefx Class Usage Examples

Public Methods

Method 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

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

Method 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 method

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

DeflateManagedStream() public method

public DeflateManagedStream ( Stream stream, CompressionLevel compressionLevel ) : System.Diagnostics
stream Stream
compressionLevel CompressionLevel
return System.Diagnostics

DeflateManagedStream() public method

public DeflateManagedStream ( Stream stream, CompressionLevel compressionLevel, bool leaveOpen ) : System.Diagnostics
stream Stream
compressionLevel CompressionLevel
leaveOpen bool
return System.Diagnostics

DeflateManagedStream() public method

public DeflateManagedStream ( Stream stream, CompressionMode mode ) : System.Diagnostics
stream Stream
mode CompressionMode
return System.Diagnostics

DeflateManagedStream() public method

public DeflateManagedStream ( Stream stream, CompressionMode mode, bool leaveOpen ) : System.Diagnostics
stream Stream
mode CompressionMode
leaveOpen bool
return System.Diagnostics

Dispose() protected method

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

EndRead() public method

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

Flush() public method

public Flush ( ) : void
return void

FlushAsync() public method

public FlushAsync ( CancellationToken cancellationToken ) : Task
cancellationToken System.Threading.CancellationToken
return Task

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

Seek() public method

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