flipper_format_insert_or_update_hex

Function flipper_format_insert_or_update_hex 

Source
pub unsafe extern "C" fn flipper_format_insert_or_update_hex(
    flipper_format: *mut FlipperFormat,
    key: *const c_char,
    data: *const u8,
    data_size: u16,
) -> bool
Expand description

Updates the value of the first matching key to an array of hex-formatted bytes, or adds the key and value if the key did not exist. Sets the RW pointer to a position at the end of inserted data.

§Arguments

  • flipper_format - Pointer to a FlipperFormat instance
  • key - Key
  • data - Value
  • data_size (direction in) - The data size

§Returns

True on success