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

x/proc/legacy/deps.ts>BufReader#read

A high-level way to run child processes that is easy, flexible, powerful, and prevents resource leaks.
Go to Latest
method BufReader.prototype.read
Re-export
import { BufReader } from "https://deno.land/x/proc@0.20.26/legacy/deps.ts";

reads data into p. It returns the number of bytes read into p. The bytes are taken from at most one Read on the underlying Reader, hence n may be less than len(p). To read exactly len(p) bytes, use io.ReadFull(b, p).

Parameters

p: Uint8Array

Returns

Promise<number | null>