pub fn read_file_capped(path: &Path, max_bytes: u64) -> Result<Vec<u8>>
Read at most max_bytes from path, rejecting files larger than the cap.
max_bytes
path