Method | Description | |
---|---|---|
BeginRead ( byte buffer, int offset, int count, AsyncCallback callback, object state ) : IAsyncResult |
Begins an asynchronous read operation.
|
|
BeginWrite ( byte buffer, int offset, int count, AsyncCallback callback, object state ) : IAsyncResult |
Begins an asynchronous write operation.
|
|
EndRead ( IAsyncResult asyncResult ) : int |
Waits for the pending asynchronous read to complete.
|
|
EndWrite ( IAsyncResult asyncResult ) : void |
Ends an asynchronous write operation.
|
|
Flush ( ) : void |
Clears all buffers for this stream and causes any buffered data to be written to the underlying device.
|
|
Read ( byte buffer, int offset, int count ) : int |
Reads a sequence of bytes from the current stream and advances the position within the stream by the number of bytes read.
|
|
ReadByte ( ) : int |
Reads a byte from the stream and advances the position within the stream by one byte, or returns -1 if at the end of the stream.
|
|
Seek ( long offset, SeekOrigin origin ) : long |
Sets the position within the current stream.
|
|
SetLength ( long value ) : void |
Sets the length of the current stream.
|
|
WrappingStream ( Stream streamBase ) : System |
Initializes a new instance of the WrappingStream class.
|
|
Write ( byte buffer, int offset, int count ) : void |
Writes a sequence of bytes to the current stream and advances the current position within this stream by the number of bytes written.
|
|
WriteByte ( byte value ) : void |
Writes a byte to the current position in the stream and advances the position within the stream by one byte.
|
Method | Description | |
---|---|---|
Dispose ( bool disposing ) : void |
Releases the unmanaged resources used by the WrappingStream and optionally releases the managed resources.
|
Method | Description | |
---|---|---|
ThrowIfDisposed ( ) : void |
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 |
protected Dispose ( bool disposing ) : void | ||
disposing | bool | true to release both managed and unmanaged resources; false to release only unmanaged resources. |
return | void |
public EndRead ( IAsyncResult asyncResult ) : int | ||
asyncResult | IAsyncResult | |
return | int |
public EndWrite ( IAsyncResult asyncResult ) : void | ||
asyncResult | IAsyncResult | |
return | void |
public Read ( byte buffer, int offset, int count ) : int | ||
buffer | byte | |
offset | int | |
count | int | |
return | int |
public Seek ( long offset, SeekOrigin origin ) : long | ||
offset | long | A byte offset relative to the |
origin | SeekOrigin | A value of type |
return | long |
public SetLength ( long value ) : void | ||
value | long | The desired length of the current stream in bytes. |
return | void |
public WrappingStream ( Stream streamBase ) : System | ||
streamBase | Stream | The wrapped stream. |
return | System |
public Write ( byte buffer, int offset, int count ) : void | ||
buffer | byte | |
offset | int | |
count | int | |
return | void |