FileByteSource class final

A file-backed random-access byte source with stable-length checks.

Implemented types

Properties

hashCode → int
The hash code for this object.
no setterinherited
length → Future<int>
Total number of bytes available from the source.
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

close() → Future<void>
Closes the underlying file handle.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
read(ByteRange range) → Future<Uint8List>
Reads exactly the bytes covered by range.
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<FileByteSource>
Opens path for random-access reads and snapshots its initial length.