Class
FileInputStream
class FileInputStream
Module: System.IO
Assembly: System.Runtime.dll
Source file: FileInputStream.rvn
Inheritance: Object → FileInputStream
Implements: InputStream, SeekableStream
A blocking, explicitly closed file read stream. Development API, not included in Preview 9.
Remarks
Native resources belong to the invocation. Close promptly; invocation teardown closes remaining files. A retained stream cannot be reused in another invocation. There is no finalizer, automatic disposal or asynchronous scheduling in this slice. FileInputStream additionally implements SeekableStream; FileOutputStream remains sequential.
Methods
9 items
Close() -> ()
Releases the open file. Repeated calls are harmless.
Implements InputStream.Close
Equals(other: object?) -> bool
Tests reference identity by default; an ordinary class may override equality.
Inherited from Object.Equals
GetHashCode() -> int
Returns a stable identity hash by default; an ordinary class may override it consistently with equality.
Inherited from Object.GetHashCode
GetPosition() -> Result<long, StreamError>
Reports the current absolute byte position.
Implements SeekableStream.GetPosition
GetType() -> TypeInfo
Returns metadata for the concrete runtime type of this instance.
Inherited from Object.GetType
Static member:
Open(path: string) -> Result<FileInputStream, StreamError>
Opens an existing regular file for reading, positioned at its beginning.
Read(buffer: byte[], offset: int, count: int, cancellationToken?: CancellationToken) -> Task<Result<int, StreamError>>
Returns an inline-completed operation over the current blocking provider.
Implements InputStream.Read
Seek(position: long) -> Result<long, StreamError>
Sets the absolute byte position without changing file contents.
Implements SeekableStream.Seek
ToString() -> string
Returns the concrete runtime type name for supported references, or display text from a class or boxed-struct override.
Inherited from Object.ToString