FileBuffer class

Constructors

FileBuffer(AbstractFileHandle _file, {int byteOrder = LITTLE_ENDIAN, int bufferSize = kDefaultBufferSize})

Properties

byteOrder int
final
hashCode int
The hash code for this object.
no setterinherited
length int
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

close() Future<void>
closeSync() → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
readBytes(int position, int count, int fileSize) Uint8List
readUint16(int position, int fileSize) int
readUint24(int position, int fileSize) int
readUint32(int position, int fileSize) int
readUint64(int position, int fileSize) int
readUint8(int position, int fileSize) int
reset() → void
toString() String
A string representation of this object.
inherited

Operators

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

Constants

kDefaultBufferSize → const int
kMinBufferSize → const int
The buffer size should be at least 8 bytes, so reading a 64-bit value doesn't have to deal with buffer overflow.