pub unsafe extern "C" fn storage_file_write(
    file: *mut File,
    buff: *const c_void,
    bytes_to_write: u16
) -> u16
Expand description

Writes bytes from a buffer to a file

Returns:

  • uint16_t how many bytes were actually written

Arguments

  • file - pointer to file object.
  • buff - pointer to buffer, for writing
  • bytes_to_write - how many bytes to write. Must be less than or equal to the size of the buffer.