Skip to main content
Module

x/netzo/deno.d.ts>Deno.WriterSync

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

Methods

writeSync(p: Uint8Array): number

Writes p.byteLength bytes from p to the underlying data stream. It returns the number of bytes written from p (0 <= n <= p.byteLength) and any error encountered that caused the write to stop early. writeSync() must throw a non-null error if it returns n < p.byteLength. writeSync() must not modify the slice data, even temporarily.

Implementations should not retain a reference to p.