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

Method read

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

* Read the file into an array buffer (`p`). * * Resolves to either the number of bytes read during the operation or EOF * (`null`) if there was nothing more to read. * * It is possible for a read to successfully return with `0` bytes. This * does not indicate EOF. * * **It is

(p: Uint8Array)

Source from the content-addressed store, hash-verified

317 * ```
318 */
319 read(p: Uint8Array): Promise<number | null>;
320 /**
321 * Synchronously read from the file into an array buffer (`p`).
322 *

Callers 2

Implementers 1

NodeFsFilefs/_node_fs_file.ts

Calls

no outgoing calls

Tested by

no test coverage detected