import { type __io } from "https://deno.land/x/deno@v0.30.0/cli/js/lib.deno_runtime.d.ts";
const { Writer } = __io;
Methods
Writes p.byteLength
bytes from p
to the underlying data
stream. It resolves to the number of bytes written from p
(0
<= n
<=
p.byteLength
) and any error encountered that caused the write to stop
early. write()
must return a non-null error if it returns n
<
p.byteLength
. write() must not modify the slice data, even temporarily.
Implementations must not retain p
.