pub unsafe extern "C" fn storage_file_read(
file: *mut File,
buff: *mut c_void,
bytes_to_read: usize,
) -> usizeExpand description
Read bytes from a file into a buffer.
§Arguments
file- pointer to the file instance to read from.buff- pointer to the buffer to be filled with read data.bytes_to_read- number of bytes to read. Must be less than or equal to the size of the buffer.
§Returns
actual number of bytes read (may be fewer than requested).