pub fn read(path: &Path, data: &mut [u8]) -> CNFSResult<usize>
Expand description
Read a file into a slice.
This is a convenience function for using open and File::read with fewer imports.
pub fn read(path: &Path, data: &mut [u8]) -> CNFSResult<usize>
Read a file into a slice.
This is a convenience function for using open and File::read with fewer imports.