Method
Seek
func Seek(position: long) -> Result<long, StreamError>
Declaring type: FileInputStream
Module: System.IO
Assembly: System.Runtime.dll
Source file: FileInputStream.rvn
Implements SeekableStream.Seek
Sets the absolute byte position without changing file contents.
Parameters
| Name | Type | Description |
|---|---|---|
position |
Int64 | Nonnegative absolute byte offset. FileInputStream permits positions beyond EOF. |
Return value
The resulting position or StreamError.
Remarks
Closed is checked first. Negative positions return InvalidRange without moving the cursor. Reading beyond EOF returns zero. Seeking does not reset a separate text reader's state; close a leave-open reader before independently repositioning and constructing a new reader.