Method Peek
Peek<T>()
Reads the next value from the buffer. Does not advance the reader.
Declaration
public ref T Peek<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. |
Exceptions
Type | Condition |
---|---|
ArgumentException | Thrown if the read would go past the end of the buffer. |