import { readVarnum } from "https://dotland.deno.dev/std@0.116.0/encoding/binary.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
optional
o: VarnumOptions = [UNSUPPORTED]