Skip to main content
Module

std/encoding/binary.ts>readVarbig

Deno standard library
Go to Latest
function readVarbig
Deprecated
Deprecated

(will be removed after 0.205.0) Use ReadableStreamBYOBReader and DataView instead.

Decodes a bigint from r, consuming sizeof(o.dataType) bytes. If less than sizeof(o.dataType) bytes were read, throws Deno.errors.unexpectedEof.

o.dataType defaults to "int64".

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

Parameters

optional
o: VarbigOptions = [UNSUPPORTED]

Returns

Promise<bigint>