readBigVlq
readBigVlq(
reader):bigint
Defined in: packages/format-varint/src/vlq/read-big-vlq.ts:22
Reads one base-128 VLQ from reader as a bigint, advancing it past the
bytes consumed — the unbounded counterpart of readVlq.
Has no range limit to report: X.660 caps no OID arc, and a bigint holds
whatever the bytes say. Prefer readVlq wherever the value is known to
fit a number; bigint arithmetic is markedly slower and allocates.
Time complexity: O(log₁₂₈ value).
Parameters
Section titled “Parameters”reader
Section titled “reader”ByteReader
Cursor positioned at the first byte of the encoding.
Returns
Section titled “Returns”bigint
The decoded value, zero or greater.
Throws
Section titled “Throws”When the bytes run out while a continuation bit is still set.
Throws
Section titled “Throws”When the encoding is overlong.