C# 클래스 System.IO.Compression.DeflateStream

상속: Stream, IDisposable
파일 보기 프로젝트 열기: dotnet/corefx 1 사용 예제들

Private Properties

프로퍼티 타입 설명
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

공개 메소드들

메소드 설명
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

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

비공개 메소드들

메소드 설명
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

메소드 상세

BeginRead() 공개 메소드

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

BeginWrite() 공개 메소드

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

CopyToAsync() 공개 메소드

public CopyToAsync ( Stream destination, int bufferSize, CancellationToken cancellationToken ) : System.Threading.Task
destination Stream
bufferSize int
cancellationToken System.Threading.CancellationToken
리턴 System.Threading.Task

DeflateStream() 공개 메소드

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

DeflateStream() 공개 메소드

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

DeflateStream() 공개 메소드

public DeflateStream ( Stream stream, CompressionLevel compressionLevel ) : System.Buffers
stream Stream
compressionLevel CompressionLevel
리턴 System.Buffers

DeflateStream() 공개 메소드

public DeflateStream ( Stream stream, CompressionLevel compressionLevel, bool leaveOpen ) : System.Buffers
stream Stream
compressionLevel CompressionLevel
leaveOpen bool
리턴 System.Buffers

DeflateStream() 공개 메소드

public DeflateStream ( Stream stream, CompressionMode mode ) : System.Buffers
stream Stream
mode CompressionMode
리턴 System.Buffers

DeflateStream() 공개 메소드

public DeflateStream ( Stream stream, CompressionMode mode, bool leaveOpen ) : System.Buffers
stream Stream
mode CompressionMode
leaveOpen bool
리턴 System.Buffers

Dispose() 보호된 메소드

protected Dispose ( bool disposing ) : void
disposing bool
리턴 void

EndRead() 공개 메소드

public EndRead ( IAsyncResult asyncResult ) : int
asyncResult IAsyncResult
리턴 int

EndWrite() 공개 메소드

public EndWrite ( IAsyncResult asyncResult ) : void
asyncResult IAsyncResult
리턴 void

Flush() 공개 메소드

public Flush ( ) : void
리턴 void

FlushAsync() 공개 메소드

public FlushAsync ( CancellationToken cancellationToken ) : System.Threading.Task
cancellationToken System.Threading.CancellationToken
리턴 System.Threading.Task

Read() 공개 메소드

public Read ( byte array, int offset, int count ) : int
array byte
offset int
count int
리턴 int

ReadAsync() 공개 메소드

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

ReadAsync() 공개 메소드

public ReadAsync ( byte array, int offset, int count, CancellationToken cancellationToken ) : Task
array byte
offset int
count int
cancellationToken System.Threading.CancellationToken
리턴 Task

ReadByte() 공개 메소드

public ReadByte ( ) : int
리턴 int

Seek() 공개 메소드

public Seek ( long offset, SeekOrigin origin ) : long
offset long
origin SeekOrigin
리턴 long

Seek() 공개 메소드

public Seek ( long offset, System origin ) : long
offset long
origin System
리턴 long

SetLength() 공개 메소드

public SetLength ( long value ) : void
value long
리턴 void

Write() 공개 메소드

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

WriteAsync() 공개 메소드

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

WriteAsync() 공개 메소드

public WriteAsync ( byte array, int offset, int count, CancellationToken cancellationToken ) : System.Threading.Task
array byte
offset int
count int
cancellationToken System.Threading.CancellationToken
리턴 System.Threading.Task