pub fn load_file_buf(name: &str) -> Option<FileBuf>
Read the whole file with the given name.
If you have a pre-allocated buffer of the right size, use load_file instead.
load_file
None is returned if the file does not exist.
None
18extern "C" fn boot() { 19 let file = ff::load_file_buf("img").unwrap(); 20 unsafe { 21 IMAGE.set(file.into()).ok().unwrap(); 22 } 23}