[]
Reads a single value from the current stream and advances the current position within this stream by the number of bytes read.
public T Read<T>() where T : struct
Public Function Read(Of T As Structure)() As T
| Type | Description |
|---|---|
| T | The value that was read. |
| Name | Description |
|---|---|
| T | The type of the value to be read from the stream. |
In order to provide faster read/write, this operation doesn't check stream bound. A client must carefully not read/write above the size of this datastream.
| Type | Condition |
|---|---|
| NotSupportedException | This stream does not support reading. |
Reads a sequence of bytes from the current stream and advances the position within the stream by the number of bytes read.
public override int Read(byte[] buffer, int offset, int count)
Public Overrides Function Read(buffer As Byte(), offset As Integer, count As Integer) As Integer
| Type | Name | Description |
|---|---|---|
| byte[] | buffer | An array of values to be read from the stream. |
| int | offset | The zero-based byte offset in buffer at which to begin storing the data read from the current stream. |
| int | count | The maximum number of bytes to be read from the current stream. |
| Type | Description |
|---|---|
| int | The number of bytes read from the stream. |
In order to provide faster read/write, this operation doesn't check stream bound. A client must carefully not read/write above the size of this datastream.
| Type | Condition |
|---|---|
| NotSupportedException | This stream does not support reading. |
Reads a sequence of bytes from the current stream and advances the current position within this stream by the number of bytes written.
public void Read(IntPtr buffer, int offset, int count)
Public Sub Read(buffer As IntPtr, offset As Integer, count As Integer)
| Type | Name | Description |
|---|---|---|
| IntPtr | buffer | An array of bytes. This method copies |
| int | offset | The zero-based byte offset in |
| int | count | The number of bytes to be written to the current stream. |