FileReaderRandom class

A reader class to wrap the random method/package used.

Inheritance

Constructors

FileReaderRandom(File _file)

Properties

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

Methods

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

Operators

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