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

Method writeSync

lib/internal/vfs/file_handle.js:154–157  ·  view source on GitHub ↗

* Writes data to the file synchronously. * @param {Buffer} buffer The buffer to write from * @param {number} offset The offset in the buffer to start reading * @param {number} length The number of bytes to write * @param {number|null} position The position to write to (null uses current

(buffer, offset, length, position)

Source from the content-addressed store, hash-verified

152 * @throws {ERR_METHOD_NOT_IMPLEMENTED} When not implemented by subclass
153 */
154 writeSync(buffer, offset, length, position) {
155 this.#checkClosed('write');
156 throw new ERR_METHOD_NOT_IMPLEMENTED('writeSync');
157 }
158
159 /**
160 * Reads the entire file.

Callers

nothing calls this directly

Calls 1

#checkClosedMethod · 0.95

Tested by

no test coverage detected