Varint Module
Unsigned LEB128 varint encoding/decoding for CID binary format.
Functions and values
| Function or value |
Description
|
Full Usage:
decode data offset
Parameters:
byte[]
offset : int
Returns: uint64 * int
|
Decode an unsigned LEB128 varint from data at the given offset. Returns (value, bytesConsumed).
|
Full Usage:
encode value
Parameters:
uint64
Returns: byte[]
|
Encode a uint64 as unsigned LEB128 bytes.
|