Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
function writeVarnum
import { writeVarnum } from "https://deno.land/std@0.42.0/encoding/binary.ts";

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

Returns the number of bytes written.

Parameters

w: Deno.Writer
x: number
optional
o: VarnumOptions = [UNSUPPORTED]

Returns

Promise<number>