Skip to main content

read_to_string_capped

Function read_to_string_capped 

Source
pub fn read_to_string_capped(path: &Path, max_bytes: u64) -> Result<String>
Expand description

UTF-8 decode a capped file read. Uses [MAX_FILE_BYTES] when max_bytes is not needed elsewhere.