Skip to main content
The Deno 2 Release Candidate is here
Learn more
Latest
function getNBytes
import { getNBytes } from "https://deno.land/x/denjucks@1.1.1/src/deps/path/std/encoding/binary.ts";

Reads n bytes from r.

Returns it in a Uint8Array, or throws Deno.errors.UnexpectedEof if n bytes cannot be read.

Returns

Promise<Uint8Array>