read_bytes_from_file

Function read_bytes_from_file 

Source
pub fn read_bytes_from_file(filename: &str) -> Vec<u8> 
Expand description

Helper function to read bytes from a file, preallocating the required space. TODO(Makis): Consider using Path/PathBuf when appropriate.