MeasureWriter class

Measures the serialized size of data written to it without writing to a Uint8List

Mixed-in types

Constructors

MeasureWriter()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size int
getter/setter pair

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