TpsFileSource class

A TpsByteSource that reads a file on disk as needed.

The file is opened read-only, so a Clarion program can keep using it. Check TpsReader.changedOnDisk when reads span a long time.

Implemented types

Constructors

TpsFileSource.open(String path)
Opens the file at path for reading.
factory

Properties

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

Methods

close() → void
Releases the source. Reads after this fail.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
read(int offset, int length) → Uint8List
Up to length bytes starting at offset; fewer only at the end.
override
toString() → String
A string representation of this object.
inherited

Operators

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