Function arceos_api::fs::ax_read_file
source · pub fn ax_read_file(file: &mut AxFileHandle, buf: &mut [u8]) -> AxResult<usize>
Available on crate feature
fs
only.Expand description
Reads the file at the current position, returns the number of bytes read.
After the read, the cursor will be advanced by the number of bytes read.