ReadbufferSource class abstract

an interface for fetching data from a mapfile. The idea is to gather the data either from a physical file or from a file already in memory.

Implementers

Constructors

ReadbufferSource.new()

Properties

hashCode int
The hash code for this object.
no setterinherited
inputStream Stream<List<int>>
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

dispose() → void
closes the underlying file
freeRessources() → void
frees the underlying files. This is meant to be used when sending to an isolate
getPosition() int
Returns the current position in the readbuffer source
length() Future<int>
returns the length of the file. If needed this method may be removed but the length check must be done in the individual read-methods then.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
readFromFile(int length) Future<Readbuffer>
Reads the given amount of bytes from the file into the read buffer and resets the internal buffer position. If the capacity of the read buffer is too small, a larger one is created automatically.
readFromFileAt(int position, int length) Future<Readbuffer>
setPosition(int position) Future<void>
toString() String
A string representation of this object.
inherited

Operators

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