Skip to main content
The Deno 2 Release Candidate is 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
Deprecated
Deprecated

(will be removed after 0.205.0) use DataView instead.

Decodes a bigint from b. If o.bytes is shorter than sizeof(o.dataType), returns null.

o.dataType defaults to "int64".

import { varbig } from "https://deno.land/std@0.201.0/encoding/binary.ts";

Parameters

b: Uint8Array
optional
o: VarbigOptions = [UNSUPPORTED]

Returns

bigint | null