Skip to main content
The Deno 2 Release Candidate is here
Learn more
Latest
function varnum
import { varnum } from "https://deno.land/x/denjucks@1.1.1/src/deps/path/std/encoding/binary.ts";

Decode a number from b, and return it as a number. Data-type defaults to int32. Returns null if b is too short for the data-type given in o.

Parameters

b: Uint8Array
optional
o: VarnumOptions = [UNSUPPORTED]

Returns

number | null