Function firefly_rust::rom::load_buf

source ·
pub fn load_buf(name: &str) -> FileBuf
Expand description

Read the whole file with the given name from ROM.

If you have a pre-allocated buffer of the right size, use load instead.

Examples found in repository?
examples/image/main.rs (line 17)
16
17
18
19
20
21
extern fn boot() {
    let file = ff::rom::load_buf("img");
    unsafe {
        IMAGE.set(file).ok().unwrap();
    }
}