[]
Reads an array of values from the current stream, and advances the current position within this stream by the number of bytes written.
public T[] ReadRange<T>(int count) where T : struct
| Type | Name | Description |
|---|---|---|
| int | count |
| Type | Description |
|---|---|
| T[] | An array of values that was read from the current stream. |
| Name | Description |
|---|---|
| T | The type of the values 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.
Reads a sequence of elements from the current stream into a target buffer and advances the position within the stream by the number of bytes read.
public int ReadRange<T>(T[] buffer, int offset, int count) where T : struct
| Type | Name | Description |
|---|---|---|
| T[] | 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 number of values to be read from the current stream. |
| Type | Description |
|---|---|
| int | The number of bytes read from the stream. |
| Name | Description |
|---|---|
| T |
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. |