VxsVarint class abstract final

Unsigned LEB128 varints plus the zigzag transform for signed values.

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

decode(Uint8List src, int offset, int end) → ({int next, int value})
Reads a varint starting at offset, not reading at or past end.
size(int value) → int
Number of bytes value occupies when written.
unzigzag(int value) → int
Inverse of zigzag.
write(Uint8List out, int offset, int value) → int
Writes value at offset and returns the number of bytes written.
zigzag(int value) → int
Maps a signed integer onto an unsigned one, keeping small magnitudes small.