Crate readfilez

source ·

Structs

Enums

  • buffered or mmapped file contents handle

Functions

  • 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.
  • Reads the file contents
  • 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 or ChunkedFile. fh is a reference because this function is intended to be called multiple times