Method Read
Read<T>()
Reads the next value from the buffer.
Declaration
public ref T Read<T>() where T : unmanaged
Returns
| Type | Description |
|---|---|
| T | A reference to the next value from the buffer. |
Type Parameters
| Name | Description |
|---|---|
| T | The type of value to read. |
Remarks
Each read advances the reader to the next item in the buffer.
Exceptions
| Type | Condition |
|---|---|
| ArgumentException | Thrown if the reader would advance past the end of the buffer. |