import { readVarnum } from "https://deno.land/std@0.36.0/encoding/mod.ts";
Reads a number from r
, comsuming sizeof(o.dataType)
bytes. Data-type defaults to int32
.
Returns it as number
, or throws UnexpectedEOFError
if not enough bytes can be read.
Parameters
r: Deno.Reader
optional
o: VarnumOptions = [UNSUPPORTED]