Close the handle and release lock resources.
void
Read content from the file into the specified buffer.
Buffer for storing data (BufferSource, such as Uint8Array, DataView, etc.). Note: Cannot directly operate on ArrayBuffer, should access through typed arrays.
Optional
options: { at?: number }Optional object:
Number of bytes actually read
Truncate or extend the file to the specified size.
Adjusted byte size of the file
void
Write data from the specified buffer to the file.
Data to be written to the file (BufferSource, such as Uint8Array, DataView, etc.)
Optional
options: { at?: number }Optional object:
Number of bytes actually written
Represents a synchronous access file handle that provides high-performance read/write operations.