Leb128 class

LEB128 integer compression.

Constructors

Leb128()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent 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

decodeSigned(List<int> bytes, {int n = 64}) int
Decodes a LEB128 bytes of a signed integer.
decodeUnsigned(List<int> bytes, {int n = 64}) int
Decodes a LEB128 bytes of a signed integer.
decodeVarInt7(int b0) → dynamic
Decodes a varInt7.
decodeVarUInt7(int b0) → dynamic
Decodes a varUInt7.
encodeSigned(int n) Uint8List
Encodes an int into a LEB128 signed integer.
encodeUnsigned(int n) Uint8List
Encodes an int into LEB128 unsigned integer.
encodeVarInt7(int n) int
Encodes a varInt7.
encodeVarUInt7(int n) int
Encodes a varUInt7.