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

Method readSync

lib/internal/vfs/file_handle.js:128–131  ·  view source on GitHub ↗

* Reads data from the file synchronously. * @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

(buffer, offset, length, position)

Source from the content-addressed store, hash-verified

126 * @throws {ERR_METHOD_NOT_IMPLEMENTED} When not implemented by subclass
127 */
128 readSync(buffer, offset, length, position) {
129 this.#checkClosed('read');
130 throw new ERR_METHOD_NOT_IMPLEMENTED('readSync');
131 }
132
133 /**
134 * Writes data to the file.

Callers

nothing calls this directly

Calls 1

#checkClosedMethod · 0.95

Tested by

no test coverage detected