* 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)
| 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. |
no test coverage detected