decodeBigVlq
decodeBigVlq(
bytes):bigint
Defined in: packages/format-varint/src/vlq/decode-big-vlq.ts:16
Decodes a buffer holding exactly one base-128 VLQ as a bigint — the
unbounded counterpart of decodeVlq.
Parameters
Section titled “Parameters”Uint8Array
A buffer holding one complete encoding and nothing else.
Returns
Section titled “Returns”bigint
The decoded value, zero or greater.
Throws
Section titled “Throws”When the encoding is truncated.
Throws
Section titled “Throws”When the encoding is overlong, or followed by unread bytes.