UtilsCompactSize class Null safety

Compact Size operations.

For numbers from 0 to 252, compactSize unsigned integers look like regular unsigned integers. For other numbers up to 0xffffffffffffffff, a byte is prefixed to the number to indicate its length—but otherwise the numbers look like regular unsigned integers in little-endian order.

Constructors

UtilsCompactSize()

Properties

hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

decode(Uint8List bytes) → List<Uint8List>
Decodes a compact size prepended Uint8List.
encode(Uint8List uint8list) → Uint8List
Encodes a Uint8List into a compact size prepended Uint8List.
toInt(Uint8List compactSize) → int
Converts a compact size Uint8List into int.
toSize(Uint8List bytes) → Uint8List
Converts a Uint8List into its compact size representation.