Skip to main content
Module

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

SDK for Netzo, the open Web platform to unify IoT devices, applications and services.
Go to Latest
method Deno.Buffer.prototype.readFromSync
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 returns the number of bytes read. If the buffer becomes too large, .readFromSync() will throw an error.

Based on Go Lang's Buffer.ReadFrom.

Returns

number