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.
|
|
Close ( ) : void |
Closes the current stream and releases any resources (such as sockets and file handles) associated with the current stream.
|
|
EndRead ( IAsyncResult asyncResult ) : int |
Waits for the pending asynchronous read to complete.
|
|
EndWrite ( IAsyncResult asyncResult ) : void |
Ends an asynchronous write operation.
|
|
Flush ( ) : void |
When overridden in a derived class, 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 |
When overridden in a derived class, 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.
|
|
ReadOnlyStreamWrapper ( Stream baseStream ) : System |
Initializes a new instance of the ReadOnlyStreamWrapper class that wraps specified underlying stream.
|
|
Seek ( long offset, SeekOrigin origin ) : long |
When overridden in a derived class, sets the position within the current stream.
|
|
SetLength ( long value ) : void |
When overridden in a derived class, sets the length of the current stream.
|
|
Write ( byte buffer, int offset, int count ) : void |
When overridden in a derived class, 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 System.IO.Stream and optionally releases the managed resources.
|
Method | Description | |
---|---|---|
_CheckIsClosed ( ) : void |
public BeginRead ( byte buffer, int offset, int count, AsyncCallback callback, object state ) : IAsyncResult | ||
buffer | byte | The buffer to read the data into. |
offset | int | The byte offset in |
count | int | The maximum number of bytes to read. |
callback | AsyncCallback | An optional asynchronous callback, to be called when the read is complete. |
state | object | A user-provided object that distinguishes this particular asynchronous read request from other requests. |
return | IAsyncResult |
public BeginWrite ( byte buffer, int offset, int count, AsyncCallback callback, object state ) : IAsyncResult | ||
buffer | byte | The buffer to write data from. |
offset | int | The byte offset in |
count | int | The maximum number of bytes to write. |
callback | AsyncCallback | An optional asynchronous callback, to be called when the write is complete. |
state | object | A user-provided object that distinguishes this particular asynchronous write request from other requests. |
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 | The reference to the pending asynchronous request to finish. |
return | int |
public EndWrite ( IAsyncResult asyncResult ) : void | ||
asyncResult | IAsyncResult | A reference to the outstanding asynchronous I/O request. |
return | void |
public Read ( byte buffer, int offset, int count ) : int | ||
buffer | byte | An array of bytes. When this method returns, the buffer contains the specified byte array with the values between |
offset | int | The zero-based byte offset in |
count | int | The maximum number of bytes to be read from the current stream. |
return | int |
public ReadOnlyStreamWrapper ( Stream baseStream ) : System | ||
baseStream | Stream | |
return | System |
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 Write ( byte buffer, int offset, int count ) : void | ||
buffer | byte | An array of bytes. This method copies |
offset | int | The zero-based byte offset in |
count | int | The number of bytes to be written to the current stream. |
return | void |
public WriteByte ( byte value ) : void | ||
value | byte | The byte to write to the stream. |
return | void |