MeasureWriter class
Measures the serialized size of data written to it without writing to a Uint8List
- Mixed-in types
Constructors
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 -
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
Static Methods
-
varIntSizeOf(
BigInt i) → int -
varIntSizeOfInt(
int i) → int