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)
parameterdescription
offsetHow many bytes to move.
locFrom where.

Return Value

The new position.

Exceptions

exceptioncondition
ObjectDisposedExceptionObject has been disposed.
ArgumentOutOfRangeExceptionoffset is larger than MaximumStreamCapacity.
ArgumentExceptionInvalid seek origin.
IOExceptionAttempt to set negative position.

See Also