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

x/adka/deno.d.ts>Deno.Buffer#readFrom

SSG & SSR: Static site generator and server side rendering using JSX.
Latest
method Deno.Buffer.prototype.readFrom
import { Deno } from "https://deno.land/x/adka@0.1.5/deno.d.ts";
const { Buffer } = Deno;

Reads data from r until EOF (null) and appends it to the buffer, growing the buffer as needed. It resolves to the number of bytes read. If the buffer becomes too large, .readFrom() will reject with an error.

Based on Go Lang's Buffer.ReadFrom.

Returns

Promise<number>