Skip to main content
Module

x/aleph/deps.ts>bufio.BufReader#read

The Full-stack Framework in Deno.
Go to Latest
method bufio.BufReader.prototype.read
import { bufio } from "https://deno.land/x/aleph@v0.3.0-alpha.2/deps.ts";
const { BufReader } = bufio;

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>