Closes the given read handle, freeing any resources it was using.
Returns a read handle for the given file, positioned at the given zero-indexed offset, that may be used to read chunks of data from the file.
Returns a read handle for the given file, positioned at the given zero-indexed offset, that may be used to read chunks of data from the file. An optional limit may be supplied to restrict the total amount of data able to be read using the handle.
Care must be taken to close
the returned handle in order to avoid
potential resource leaks.
Read a chunk of data from the file represented by the given handle.
Read a chunk of data from the file represented by the given handle.
An empty Vector
signals that all data has been read.
Low-level, unsafe operations. Clients are responsible for resource-safety when using these.