Function firefly_rust::data::load

source ยท
pub fn load<'a>(name: &str, buf: &'a mut [u8]) -> File<'a>
Expand description

Read the whole file with the given name into the given buffer.

If the file size is not known in advance (and so the buffer has to be allocated dynamically), consider using load_buf instead.