Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/deno/std/io/bufio.ts>BufReader#read

A modern runtime for JavaScript and TypeScript.
Go to Latest
method BufReader.prototype.read
import { BufReader } from "https://deno.land/x/deno@v0.35.0/std/io/bufio.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 | Deno.EOF>