Skip to main content

read_file_capped

Function read_file_capped 

Source
pub fn read_file_capped(path: &Path, max_bytes: u64) -> Result<Vec<u8>>
Expand description

Read at most max_bytes from path, rejecting files larger than the cap.