Skip to content

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.

Uint8Array

A buffer holding one complete encoding and nothing else.

bigint

The decoded value, zero or greater.

When the encoding is truncated.

When the encoding is overlong, or followed by unread bytes.