BytesBuffer class
A class for concatenating byte arrays efficiently.
Allows for the incremental building of a byte array using add*() methods. The arrays are concatenated to a single byte array only when toBytes is called.
Constructors
- BytesBuffer({bool copy = false})
Properties
Methods
-
add(
List< int> bytes, {bool? copy}) → void - Add a byte array to the buffer.
-
addByte(
int byte) → void - Add a single byte to the buffer.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toBytes(
{bool? copy}) → Uint8List - Concatenate the byte arrays and return them as a single unit.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited