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] instead.
None is returned if the file does not exist.
None
16 17 18 19 20 21
extern fn boot() { let file = ff::load_file_buf("img").unwrap(); unsafe { IMAGE.set(file).ok().unwrap(); } }