Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/simple_ipc/deps.ts>readVarnum

A simple and lightweight IPC module for Deno.
Latest
function readVarnum
import { readVarnum } from "https://deno.land/x/simple_ipc@v0.1.3/deps.ts";

Decodes a number from r, consuming sizeof(o.dataType) bytes. If less than sizeof(o.dataType) bytes were read, throws Deno.errors.unexpectedEof.

o.dataType defaults to "int32".

Parameters

r: Reader
optional
o: VarnumOptions = [UNSUPPORTED]

Returns

Promise<number>