Skip to main content
Module

std/encoding/binary.ts>varnum

Deno standard library
Go to Latest
function varnum
Deprecated
Deprecated

(will be removed after 0.205.0) Use DataView instead.

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

o.dataType defaults to "int32".

import { varnum } from "https://deno.land/std@0.205.0/encoding/binary.ts";

Parameters

b: Uint8Array
optional
o: VarnumOptions = [UNSUPPORTED]

Returns

number | null