Structs§
Enums§
- File
Handle - buffered or mmapped file contents handle
Functions§
- get_
file_ len - Returns the length of the file,
and is based upon
memmap2::MmapOptions::get_len()
. It doesn’t sanitize the fact that mapping a slice greater than isize::MAX has undefined behavoir. - read_
from_ file - Reads the file contents
- read_
part_ from_ file - Reads a part of the file contents,
use this if the file is too big and needs to be read in parts,
starting at offset and until the given LengthSpec is met.
if you want a more ergonomic interface, use
ContinuableFile
orChunkedFile
. fh is a reference because this function is intended to be called multiple times