Skip to main content
Module

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

SDK for Netzo, the open Web platform to unify IoT devices, applications and services.
Go to Latest
method Deno.Buffer.prototype.readSync
import { Deno } from "https://deno.land/x/netzo@v0.1.10/deno.d.ts";
const { Buffer } = Deno;

Reads the next p.length bytes from the buffer or until the buffer is drained. Returns the number of bytes read. If the buffer has no data to return, the return is EOF (null).

Parameters

p: Uint8Array

Returns

number | null