std/encoding/binary.ts

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

Encodes bigint x into b. Returns the number of bytes used, or 0 if b is shorter than sizeof(o.dataType).

o.dataType defaults to "int64".

Parameters

b: Uint8Array[src]
x: bigint[src]
optional
o: VarbigOptions
[src]