Close the file handle.
Flush pending writes to the file.
Get file size in bytes.
Read data from the file.
Number of bytes or a preallocated buffer.
Optional
options: { at?: number }Optional at
offset to read from.
A Promise resolving to an ArrayBuffer of read data.
Truncate the file to a specified size.
New size of the file in bytes.
Write data to the file.
String or buffer to write.
Optional
options: { at?: number }Optional at
offset to write at.
Number of bytes written.
Read-write file handle. Extends FileRO with write and truncate capabilities.