RecyclableMemoryStream.Seek method
December 6, 2023 · View on GitHub
Sets the position to the offset from the seek location.
public override long Seek(long offset, SeekOrigin loc)
| parameter | description |
|---|---|
| offset | How many bytes to move. |
| loc | From where. |
Return Value
The new position.
Exceptions
| exception | condition |
|---|---|
| ObjectDisposedException | Object has been disposed. |
| ArgumentOutOfRangeException | offset is larger than MaximumStreamCapacity. |
| ArgumentException | Invalid seek origin. |
| IOException | Attempt to set negative position. |
See Also
- class RecyclableMemoryStream
- namespace Microsoft.IO