flipperzero_sys

Function saved_struct_save

Source
pub unsafe extern "C" fn saved_struct_save(
    path: *const c_char,
    data: *const c_void,
    size: usize,
    magic: u8,
    version: u8,
) -> bool
Expand description

Save data in saved structure format

§Arguments

  • path (direction in) - The path to the file
  • data (direction in) - Pointer to the memory where data
  • size (direction in) - The size of the data
  • magic (direction in) - The magic to embed into metadata
  • version (direction in) - The version to embed into metadata

§Returns

true on success, false otherwise