Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

std/encoding/binary.ts>varbig

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
function varbig
import { varbig } from "https://deno.land/std@0.38.0/encoding/binary.ts";

Decode an integer from b, and return it as a bigint. Data-type defaults to int64. Returns EOF if b is too short for the data-type given in o.

Parameters

b: Uint8Array
optional
o: VarbigOptions = [UNSUPPORTED]

Returns

bigint | Deno.EOF