[][src]Function hina::fs::read_all_bytes

pub fn read_all_bytes(path: impl AsRef<Path>) -> Result<Vec<u8>, Error>

opens a binary file, reads the contents of the file into a vec, and then closes the file.