Метод | Описание | |
---|---|---|
BeginRead ( byte buffer, int offset, int count, AsyncCallback callback, object state ) : IAsyncResult | ||
BeginWrite ( byte buffer, int offset, int count, AsyncCallback callback, object state ) : IAsyncResult | ||
BufferedStream ( |
||
BufferedStream ( |
||
CopyToAsync ( |
||
EndRead ( IAsyncResult asyncResult ) : int | ||
EndWrite ( IAsyncResult asyncResult ) : void | ||
Flush ( ) : void | ||
FlushAsync ( CancellationToken cancellationToken ) : Task | ||
Read ( byte array, int offset, int count ) : int | ||
ReadAsync ( byte buffer, int offset, int count, CancellationToken cancellationToken ) : Task |
||
ReadByte ( ) : int | ||
Seek ( long offset, SeekOrigin origin ) : long | ||
SetLength ( long value ) : void | ||
Write ( byte array, int offset, int count ) : void | ||
WriteAsync ( byte buffer, int offset, int count, CancellationToken cancellationToken ) : Task | ||
WriteByte ( byte value ) : void |
Метод | Описание | |
---|---|---|
Dispose ( bool disposing ) : void |
Метод | Описание | |
---|---|---|
ClearReadBufferBeforeWrite ( ) : void |
Called by Write methods to clear the Read Buffer
|
|
CopyToAsyncCore ( |
||
EnsureBufferAllocated ( ) : void | ||
EnsureCanRead ( ) : void | ||
EnsureCanSeek ( ) : void | ||
EnsureCanWrite ( ) : void | ||
EnsureNotClosed ( ) : void | ||
EnsureShadowBufferAllocated ( ) : void | ||
FlushAsyncInternal ( CancellationToken cancellationToken ) : Task | ||
FlushRead ( ) : void | ||
FlushWrite ( ) : void | ||
FlushWriteAsync ( CancellationToken cancellationToken ) : Task | ||
LastSyncCompletedReadTask ( int val ) : Task |
||
LazyEnsureAsyncActiveSemaphoreInitialized ( ) : SemaphoreSlim | ||
ReadByteSlow ( ) : int | ||
ReadFromBuffer ( Byte array, int offset, int count, Exception &error ) : int | ||
ReadFromBuffer ( byte array, int offset, int count ) : int | ||
ReadFromUnderlyingStreamAsync ( byte array, int offset, int count, CancellationToken cancellationToken, int bytesAlreadySatisfied, Task semaphoreLockTask ) : Task |
BufferedStream should be as thin a wrapper as possible. We want ReadAsync to delegate to ReadAsync of the underlying _stream rather than calling the base Stream which implements the one in terms of the other. This allows BufferedStream to affect the semantics of the stream it wraps as little as possible.
|
|
WriteToBuffer ( byte array, int &offset, int &count ) : void | ||
WriteToBuffer ( byte array, int &offset, int &count, Exception &error ) : void | ||
WriteToUnderlyingStreamAsync ( byte array, int offset, int count, CancellationToken cancellationToken, Task semaphoreLockTask ) : Task |
BufferedStream should be as thin a wrapper as possible. We want WriteAsync to delegate to WriteAsync of the underlying _stream rather than calling the base Stream which implements the one in terms of the other. This allows BufferedStream to affect the semantics of the stream it wraps as little as possible.
|
public BeginRead ( byte buffer, int offset, int count, AsyncCallback callback, object state ) : IAsyncResult | ||
buffer | byte | |
offset | int | |
count | int | |
callback | AsyncCallback | |
state | object | |
Результат | IAsyncResult |
public BeginWrite ( byte buffer, int offset, int count, AsyncCallback callback, object state ) : IAsyncResult | ||
buffer | byte | |
offset | int | |
count | int | |
callback | AsyncCallback | |
state | object | |
Результат | IAsyncResult |
public BufferedStream ( |
||
stream | ||
Результат | System.Runtime.InteropServices |
public BufferedStream ( |
||
stream | ||
bufferSize | int | |
Результат | System.Runtime.InteropServices |
public CopyToAsync ( |
||
destination | ||
bufferSize | int | |
cancellationToken | ||
Результат | Task |
protected Dispose ( bool disposing ) : void | ||
disposing | bool | |
Результат | void |
public EndRead ( IAsyncResult asyncResult ) : int | ||
asyncResult | IAsyncResult | |
Результат | int |
public EndWrite ( IAsyncResult asyncResult ) : void | ||
asyncResult | IAsyncResult | |
Результат | void |
public FlushAsync ( CancellationToken cancellationToken ) : Task | ||
cancellationToken | CancellationToken | |
Результат | Task |
public Read ( byte array, int offset, int count ) : int | ||
array | byte | |
offset | int | |
count | int | |
Результат | int |
public ReadAsync ( byte buffer, int offset, int count, CancellationToken cancellationToken ) : Task |
||
buffer | byte | |
offset | int | |
count | int | |
cancellationToken | CancellationToken | |
Результат | Task |
public Seek ( long offset, SeekOrigin origin ) : long | ||
offset | long | |
origin | SeekOrigin | |
Результат | long |
public Write ( byte array, int offset, int count ) : void | ||
array | byte | |
offset | int | |
count | int | |
Результат | void |
public WriteAsync ( byte buffer, int offset, int count, CancellationToken cancellationToken ) : Task | ||
buffer | byte | |
offset | int | |
count | int | |
cancellationToken | CancellationToken | |
Результат | Task |