MCPcopy Create free account
hub / github.com/nodejs/node / read

Method read

lib/internal/vfs/file_handle.js:115–118  ·  view source on GitHub ↗

* Reads data from the file. * @param {Buffer} buffer The buffer to read into * @param {number} offset The offset in the buffer to start writing * @param {number} length The number of bytes to read * @param {number|null} position The position to read from (null uses current position) *

(buffer, offset, length, position)

Source from the content-addressed store, hash-verified

113 * @returns {Promise<{ bytesRead: number, buffer: Buffer }>}
114 */
115 async read(buffer, offset, length, position) {
116 this.#checkClosed('read');
117 throw new ERR_METHOD_NOT_IMPLEMENTED('read');
118 }
119
120 /**
121 * Reads data from the file synchronously.

Callers 1

readvMethod · 0.95

Calls 1

#checkClosedMethod · 0.95

Tested by

no test coverage detected