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.78.0/encoding/binary.ts";

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

o.dataType defaults to "int32".

Parameters

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

Returns

Promise<number>