* 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)
| 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. |