std/encoding/binary.ts

Deno standard library
Go to Latest
function readVarbig
import { readVarbig } from "https://deno.land/std@0.145.0/encoding/binary.ts?s=readVarbig";

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".

Parameters

r: Deno.Reader[src]
optional
o: VarbigOptions
[src]

Returns

Promise<bigint>[src]