Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Go to Latest
function writeVarbig
Deprecated
Deprecated

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

Encodes and writes x to w. Resolves to the number of bytes written.

o.dataType defaults to "int64".

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

Parameters

x: bigint
optional
o: VarbigOptions = [UNSUPPORTED]

Returns

Promise<number>