-
-
Takes Uint8Array with LEB128 encoded unsigned varint and an optional start index to decode from. Returns 2-tuple of decoded value and number of bytes consumed. Consumes up to 10 bytes from src
.
-
-
Encodes signed integer x
into LEB128 varint format and returns encoded bytes.
-
Encodes unsigned integer x
into LEB128 varint format and returns encoded bytes. Values < 0 will be encoded as zero.
-
Generated using TypeDoc
Takes Uint8Array with LEB128 encoded signed varint and an optional start index to decode from. Returns 2-tuple of decoded value and number of bytes consumed. Consumes up to 10 bytes from
src
.