Development · Native API migration preview · Coverage validation in progress Published release →

API Browser

Method

Seek

func Seek(position: long) -> Result<long, StreamError>

Declaring type: MemoryStream
Module: System.IO
Assembly: System.Runtime.dll
Source file: MemoryStream.rvn

Implements SeekableStream.Seek

Sets the absolute shared position without changing length.

Parameters

Name Type Description
position Int64 Byte position from zero through 65536.

Return value

Result<Int64, StreamError>

The new position; InvalidRange for negative positions, LimitExceeded above 65536, or Closed. Errors leave the position unchanged.