pub fn load_to_buffer(&self, path: &str, buf: &mut [u8]) -> io::Result<usize> {
        let path = self.get_path(path)?;

        let mut f = File::open(path)?;
        f.read(buf)
    }
/// Load a file into pre-allocated buffer.
Load a file into pre-allocated buffer.
Load a file into pre - allocated buffer .
pub fn load_to_buffer(&self, path: &str, buf: &mut [u8]) -> io::Result<usize> {
        let path = self.get_path(path)?;
        let mut f = File::open(path)?;
        f.read(buf)
    }
pub fn load_to_buffer ( & self , path : & str , buf : & mut [ u8 ] ) -> io :: Result < usize > { let path = self . get_path ( path ) ? ; let mut f = File :: open ( path ) ? ; f . read ( buf ) }
Load a file into pre-allocated buffer.
Load a file into pre - allocated buffer .
&self
path
&str
buf
&mut [u8]
&self
path
&str
buf
&mut [u8]