Module

std/io/mod.ts>Buffer#write

The Deno Standard Library
Latest
method Buffer.prototype.write
import { Buffer } from "https://dotland.deno.dev/std@0.224.0/io/mod.ts";

NOTE: This methods writes bytes synchronously; it's provided for compatibility with Writer interface.

Parameters

p: Uint8Array

Returns

Promise<number>