Legend:
Library
Module
Module type
Parameter
Class
Class type
Operations on open files.
Files implement the Flow APIs, which can be used for reading and writing data. This module provides additonal file-specific operations, such as seeking within a file.
To get an open file, use the functions in the Path module.
val pread : _ro->file_offset:Optint.Int63.t ->Cstruct.t list-> int
pread t ~file_offset bufs performs a single read of t at file_offset into bufs.
It returns the number of bytes read, which may be less than the space in bufs, even if more bytes are available. Use pread_exact instead if you require the buffer to be filled.