Module

x/dax/src/deps.ts>BufReader#read

Cross-platform shell tools for Deno and Node.js inspired by zx.
Very Popular
Latest
method BufReader.prototype.read
import { BufReader } from "https://dotland.deno.dev/x/dax@0.39.2/src/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>