Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

std/encoding/binary.ts>readExact

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
function readExact
import { readExact } from "https://deno.land/std@0.188.0/encoding/binary.ts";

Reads the exact number of bytes from r required to fill b.

Throws Deno.errors.UnexpectedEof if n bytes cannot be read.

Parameters

b: Uint8Array