BytesEmitter class
An emitter for bytes where each write operation can have an optional description that will be displayed by toString. The complete list of bytes is emitted through output."
See Leb128.
Constructors
- BytesEmitter({String? description, Object? data})
- Creates a new BytesEmitter.
Properties
- description → String?
-
Optional description of this bytes instance.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- length → int
-
The length of bytes to output.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
add(
Object? data, {String? description}) → void -
Adds
data
to this bytes instance. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
output(
) → Uint8List - Outputs/emits all the written bytes.
-
toString(
{String indent = '', bool hex = false}) → String -
Show bytes description if defined.
override
-
write(
List< int> data, {String? description}) → void -
Writes
data
to this bytes instance. -
writeAll(
Iterable< List< data, {String? description}) → voidint> > -
Writes all
data
to this bytes instance. -
writeAllBytes(
Iterable< BytesEmitter> bytes, {String? description}) → void -
Writes all the
bytes
to this bytes instance. -
writeByte(
int b, {String? description}) → void -
Writes a byte
b
to this bytes instance. -
writeBytes(
BytesEmitter bytes, {String? description}) → void -
Writes
bytes
to this bytes instance. -
writeBytesLeb128Block(
List< BytesEmitter> block, {String? description}) → void -
Writes a Leb128
block
to this bytes instance. -
writeLeb128Block(
List< List< block, {String? description}) → voidint> > -
Writes a Leb128
block
to this bytes instance.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited