InputFileStream class

Inheritance

Constructors

InputFileStream(String path, {int byteOrder = LITTLE_ENDIAN, int bufferSize = FileBuffer.kDefaultBufferSize})
factory
InputFileStream.clone(InputFileStream other, {int? position, int? length})
InputFileStream.withFileBuffer(FileBuffer _file, {int byteOrder = LITTLE_ENDIAN, int bufferSize = FileBuffer.kDefaultBufferSize})
InputFileStream.withFileHandle(AbstractFileHandle fh, {int byteOrder = LITTLE_ENDIAN, int bufferSize = FileBuffer.kDefaultBufferSize})

Properties

byteOrder int
final
file FileBuffer
no setter
fileRemaining int
no setter
hashCode int
The hash code for this object.
no setterinherited
isEOS bool
Is the current position at the end of the stream?
no setteroverride
length int
How many bytes are left in the stream.
no setteroverride
position int
The current read position relative to the start of the buffer.
getter/setter pairoverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

close() Future<void>
Asynchronously closes the input stream.
override
closeSync() → void
Synchronously close the input stream
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
peekBytes(int count, [int offset = 0]) InputStreamBase
Read count bytes from an offset of the current read position, without moving the read position.
override
readByte() int
Read a single byte.
override
readBytes(int count) InputStreamBase
Read count bytes from the stream.
override
readString({int? size, bool utf8 = true}) String
Read a null-terminated string, or if len is provided, that number of bytes returned as a string.
override
readUint16() int
Read a 16-bit word from the stream.
override
readUint24() int
Read a 24-bit word from the stream.
override
readUint32() int
Read a 32-bit word from the stream.
override
readUint64() int
Read a 64-bit word form the stream.
override
reset() → void
Reset to the beginning of the stream.
override
rewind([int length = 1]) → void
Rewind the read head of the stream by the given number of bytes.
override
skip(int length) → void
Move the read position by count bytes.
override
subset([int? position, int? length]) InputStreamBase
override
toString() String
A string representation of this object.
inherited
toUint8List([Uint8List? bytes]) Uint8List
override

Operators

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

Static Methods

asRamFile(Stream<Uint8List> stream, int fileLength, {int byteOrder = LITTLE_ENDIAN, int bufferSize = FileBuffer.kDefaultBufferSize}) Future<InputFileStream>