AFileReader class abstract

File reader class, be it buffered or random.

This class can't rewind.

Implementers

Constructors

AFileReader()

Properties

hashCode int
The hash code for this object.
no setterinherited
isOpen bool
Check if the file is open.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

close() → void
Close the reader.
get(int bytesCount) Future<List<int>>
Get bytesCount of bytes into a list.
getBuffer(int bytesCount) Future<LByteBuffer>
Get bytesCount of bytes into a LByteBuffer.
getByte() Future<int>
Get a single byte.
getDouble32([Endian endian = Endian.big]) Future<double>
Get a 4 bytes float with a chosen endianness.
getDouble64([Endian endian = Endian.big]) Future<double>
Get a 8 bytes double with a chosen endianness.
getInt32([Endian endian = Endian.big]) Future<int>
Get a 4 bytes integer with a chosen endianness.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
readIntoBuffer(LByteBuffer buffer) Future<int>
Read the amount of remaining bytes of the buffer from the reader. returns the real count read.
skip(int bytesToSkip) Future
Skip bytesToSkip bytes.
toString() String
A string representation of this object.
inherited

Operators

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