ReadbufferMemory class

A ReadbufferSource that reads from an in-memory Uint8List.

Inheritance

Constructors

ReadbufferMemory(Uint8List content)
Creates a new ReadbufferMemory with the given content.

Properties

content Uint8List
final
hashCode int
The hash code for this object.
no setterinherited
inputStream Stream<List<int>>
Returns the content of the buffer as a stream.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

dispose() → void
Clears the content of the buffer.
override
freeRessources() → void
This implementation has no resources to free.
override
getPosition() int
Returns the current read position in the buffer.
override
length() Future<int>
Returns the total length of the buffer.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
readFromFile(int length) Future<Readbuffer>
Reads a block of data of the given length from the current position.
override
readFromFileAt(int indexBlockPosition, int indexBlockSize) Future<Readbuffer>
Reads a block of data from the buffer at a specific position.
override
setPosition(int position) Future<void>
Sets the current read position in the buffer.
override
toString() String
A string representation of this object.
inherited

Operators

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