Skip to main content

read_file

Function read_file 

Source
pub fn read_file(path: &Path) -> Result<FileData>
Expand description

Read a file with zero-copy mmap for large files or read() for small files. Opens once with O_NOATIME, uses fstat for metadata to save a syscall.