VariableSizeEncoder<T> class
final
A variable-size encoder whose byte length depends on the value being encoded.
Constructors
Properties
Methods
-
encode(
T value) → Uint8List -
Encode
valueinto a new Uint8List.override -
getSizeFromValue(
T value) → int -
Returns the encoded byte size for the given
value. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
write(
T value, Uint8List bytes, int offset) → int -
Write the encoded
valueintobytesstarting atoffset.override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited