Skip to main content
Module

std/encoding/binary.ts>readExact

Deno standard library
Go to Latest
function readExact
import { readExact } from "https://deno.land/std@0.145.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

Returns

Promise<void>