MCPcopy Create free account
hub / github.com/denoland/std / write

Method write

fs/unstable_types.ts:550–550  ·  view source on GitHub ↗

* Write the contents of the array buffer (`p`) to the file. * * Resolves to the number of bytes written. * * **It is not guaranteed that the full buffer will be written in a single * call.** * * @example Usage * ```ts ignore * import { open } from "@std/fs/unstable-open";

(p: Uint8Array)

Source from the content-addressed store, hash-verified

548 * ```
549 */
550 write(p: Uint8Array): Promise<number>;
551 /**
552 * Synchronously write the contents of the array buffer (`p`) to the file.
553 *

Callers 3

Implementers 1

NodeFsFilefs/_node_fs_file.ts

Calls

no outgoing calls

Tested by

no test coverage detected