Deno.Buffer.prototype.write - Deno documentation
method Deno.Buffer.prototype.write
Buffer.prototype.write(p: Uint8Array): Promise<number>

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

Parameters

p: Uint8Array

Return Type

Promise<number>