flipperzero_sys

Function args_read_hex_bytes

Source
pub unsafe extern "C" fn args_read_hex_bytes(
    args: *mut FuriString,
    bytes: *mut u8,
    bytes_count: usize,
) -> bool
Expand description

Convert hex ASCII values to byte array

§Arguments

  • args - arguments string
  • bytes - byte array pointer, output
  • bytes_count - needed bytes count

§Returns

true - success false - arguments string does not contain enough values, or contain non-hex ASCII values