C# Class System.IO.Compression.PositionPreservingWriteOnlyStreamWrapper

Inheritance: Stream
Afficher le fichier Open project: dotnet/corefx

Méthodes publiques

Méthode Description
BeginWrite ( byte buffer, int offset, int count, AsyncCallback callback, object state ) : IAsyncResult
Close ( ) : void
EndWrite ( IAsyncResult asyncResult ) : void
Flush ( ) : void
FlushAsync ( CancellationToken cancellationToken ) : Task
PositionPreservingWriteOnlyStreamWrapper ( Stream stream ) : System.Threading

Creates a wrapper for write-only (non-readable, non-seekable) streams that keeps track of Position and allows it to be read.

Read ( byte buffer, int offset, int count ) : int
Seek ( long offset, SeekOrigin origin ) : long
SetLength ( long value ) : void
Write ( byte buffer, int offset, int count ) : void
WriteAsync ( byte buffer, int offset, int count, CancellationToken cancellationToken ) : Task
WriteByte ( byte value ) : void

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Method Details

BeginWrite() public méthode

public BeginWrite ( byte buffer, int offset, int count, AsyncCallback callback, object state ) : IAsyncResult
buffer byte
offset int
count int
callback AsyncCallback
state object
Résultat IAsyncResult

Close() public méthode

public Close ( ) : void
Résultat void

Dispose() protected méthode

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

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

PositionPreservingWriteOnlyStreamWrapper() public méthode

Creates a wrapper for write-only (non-readable, non-seekable) streams that keeps track of Position and allows it to be read.
public PositionPreservingWriteOnlyStreamWrapper ( Stream stream ) : System.Threading
stream Stream The underlying stream, which handles all actual writes.
Résultat System.Threading

Read() public méthode

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

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 buffer, int offset, int count ) : void
buffer byte
offset int
count int
Résultat void

WriteAsync() public méthode

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

WriteByte() public méthode

public WriteByte ( byte value ) : void
value byte
Résultat void