flipperzero_sys

Function storage_file_write

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

Write bytes from a buffer to a file.

§Arguments

  • file - pointer to the file instance to write into.
  • buff - pointer to the buffer containing the data to be written.
  • bytes_to_write - number of bytes to write. Must be less than or equal to the size of the buffer.

§Returns

actual number of bytes written (may be fewer than requested).