BytesWriter class
Writes serialized data to a Uint8List. Throws an OutOfData exception if there is not enough space in the bytes to write to.
- Mixed-in types
Constructors
- BytesWriter.new(Uint8List bytes, [int offset = 0])
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
writeInt32(
int i) → void -
override
-
writeSlice(
Uint8List slice) → void -
Writes an expected number of bytes without any varint
override
-
writeUInt16(
int i) → void -
override
-
writeUInt32(
int i) → void -
override
-
writeUInt64(
BigInt i) → void -
A BigInt is necessary to encode large 64-bit integers due to limits on
the size of Javascript integers
override
-
writeUInt8(
int i) → void -
override
-
writeVarInt(
BigInt i) → void -
override
-
writeVarSlice(
Uint8List slice) → void -
Writes bytes with the length encoded as a varint
inherited
-
writeVector(
List< Uint8List> vector) → void -
Writes a list of Uint8List bytes with the length of the vector given by a
varint.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited