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

Writes a number x to w. Data-type defaults to int32.

Returns the number of bytes written.

Parameters

x: number
optional
o: VarnumOptions = [UNSUPPORTED]

Returns

Promise<number>