Skip to main content
Go to Latest
function writeVarnum
import { writeVarnum } from "https://deno.land/std@0.80.0/encoding/binary.ts";

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

o.dataType defaults to "int32".

Parameters

x: number
optional
o: VarnumOptions = [UNSUPPORTED]

Returns

Promise<number>