FourdgsFileReadable class

A file, read by byte range.

Opens the file once and issues positioned reads against the open handle, which is what makes an indexed decode cost the ranges it asks for rather than the file: reading an instant out of a 500 MiB scene reads the index and then that instant, and never anything in between.

Implemented types

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

close() Future<void>
Closes the underlying handle.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
read(int offset, int length) Future<Uint8List>
Exactly length bytes at offset, or a thrown error.
override
size() Future<int>
Total size of the resource in bytes.
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

open(String path) Future<FourdgsFileReadable>
Opens path for reading.