Runs all blocking file I/O commands in a thread pool and calls the handler upon completion.
Appends the data from the buffer into a file at the specified path.
Retrieve the buffer from the last command. Must be called upon completion.
Cleans up the underlying resources. todo: make this dispose?
Sets the handler called by the owner thread's event loop after the command is completed.
Reads the file into the buffer starting at offset byte position.
Creates a new buffer with the specified length and uses it to read the file data at the specified path starting at the specified offset byte.
Writes the data from the buffer into the file at the specified path starting at the given offset byte position.