[][src]Crate readfilez

Structs

ChunkedFile
ContinuableFile
LengthSpec

Enums

FileHandle

buffered or mmapped file contents handle

Functions

get_file_len

Returns the length of the file, and is based upon memmap::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 or ChunkedFile. fh is a reference because this function is intended to be called multiple times