RecyclableMemoryStream.SafeReadByte method
December 6, 2023 · View on GitHub
Reads a single byte from the specified position in the stream.
public int SafeReadByte(ref long streamPosition)
| parameter | description |
|---|---|
| streamPosition | The position in the stream to read from. |
Return Value
The byte at the current position, or -1 if the position is at the end of the stream.
Exceptions
| exception | condition |
|---|---|
| ObjectDisposedException | Object has been disposed. |
See Also
- class RecyclableMemoryStream
- namespace Microsoft.IO