Function mmap_bytes

Source
pub fn mmap_bytes(file: &File, len: Option<u64>) -> Result<Bytes>
Expand description

Return a read-only view of the entire file.

If len is None, detect the file length automatically.