pub fn load_file<'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_file_buf
] instead.