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

API Browser

Method

GetPosition

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

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

Implements SeekableStream.GetPosition

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.