pub unsafe fn read<C: AsRef<CStr>>(path: C, flags: u32) -> Vec<u8>
Expand description
Loads a file from ROM by filepath into a heap-allocated buffer.
Safety
The file path must be a valid path to an existing file in the ROM file system.
Additionally, see safety note for [Vec::from_raw_parts
]. It’s probably safer to
use the File
struct instead.
You must make sure this is not called during interrupts.