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

Method write

lib/internal/vfs/file_handle.js:141–144  ·  view source on GitHub ↗

* Writes data to the file. * @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 position) *

(buffer, offset, length, position)

Source from the content-addressed store, hash-verified

139 * @returns {Promise<{ bytesWritten: number, buffer: Buffer }>}
140 */
141 async write(buffer, offset, length, position) {
142 this.#checkClosed('write');
143 throw new ERR_METHOD_NOT_IMPLEMENTED('write');
144 }
145
146 /**
147 * Writes data to the file synchronously.

Callers 2

writevMethod · 0.95
appendFileMethod · 0.95

Calls 1

#checkClosedMethod · 0.95

Tested by

no test coverage detected