import { readVarnum } from "https://deno.land/std@0.41.0/encoding/binary.ts";
Reads a number from r
, comsuming sizeof(o.dataType)
bytes. Data-type defaults to int32
.
Returns it as number
, or throws Deno.errors.UnexpectedEof
if not enough bytes can be read.