Method | Description | |
---|---|---|
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 |
Method | Description | |
---|---|---|
Dispose ( bool disposing ) : void |
Method | Description | |
---|---|---|
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 | |
return | IAsyncResult |
public BeginWrite ( byte buffer, int offset, int count, AsyncCallback callback, object state ) : IAsyncResult | ||
buffer | byte | |
offset | int | |
count | int | |
callback | AsyncCallback | |
state | object | |
return | IAsyncResult |
public BufferedStream ( |
||
stream | ||
return | System.Runtime.InteropServices |
public BufferedStream ( |
||
stream | ||
bufferSize | int | |
return | System.Runtime.InteropServices |
public CopyToAsync ( |
||
destination | ||
bufferSize | int | |
cancellationToken | ||
return | Task |
public EndRead ( IAsyncResult asyncResult ) : int | ||
asyncResult | IAsyncResult | |
return | int |
public EndWrite ( IAsyncResult asyncResult ) : void | ||
asyncResult | IAsyncResult | |
return | void |
public FlushAsync ( CancellationToken cancellationToken ) : Task | ||
cancellationToken | CancellationToken | |
return | Task |
public Read ( byte array, int offset, int count ) : int | ||
array | byte | |
offset | int | |
count | int | |
return | int |
public ReadAsync ( byte buffer, int offset, int count, CancellationToken cancellationToken ) : Task |
||
buffer | byte | |
offset | int | |
count | int | |
cancellationToken | CancellationToken | |
return | Task |
public Seek ( long offset, SeekOrigin origin ) : long | ||
offset | long | |
origin | SeekOrigin | |
return | long |
public Write ( byte array, int offset, int count ) : void | ||
array | byte | |
offset | int | |
count | int | |
return | void |
public WriteAsync ( byte buffer, int offset, int count, CancellationToken cancellationToken ) : Task | ||
buffer | byte | |
offset | int | |
count | int | |
cancellationToken | CancellationToken | |
return | Task |