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

std/encoding/binary.ts>varnum

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
function varnum
import { varnum } from "https://deno.land/std@0.152.0/encoding/binary.ts";

Decodes a number from b. If o.bytes is shorter than sizeof(o.dataType), returns null.

o.dataType defaults to "int32".

Parameters

b: Uint8Array
optional
o: VarnumOptions = [UNSUPPORTED]

Returns

number | null