Skip to main content
Module

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

SDK for Netzo, the open Web platform to unify IoT devices, applications and services.
Go to Latest
method Deno.Buffer.prototype.readFrom
import { Deno } from "https://deno.land/x/netzo@v0.1.10/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>