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

API Browser

Method

GetPosition

abstract virtual func GetPosition() -> Result<long, StreamError>

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

Defined by SeekableStream.GetPosition · Required implementation (no default).

Interface implementation: Required implementation (no default).

Reports the current absolute byte position.

Return value

Result<Int64, StreamError>

The nonnegative position as Int64, or StreamError.

Remarks

Closed streams return Closed. Positions outside the representable range return LimitExceeded. This is not a decoded-character position.