Function flipperzero_sys::bit_buffer_get_byte_from_bit

source ·
pub unsafe extern "C" fn bit_buffer_get_byte_from_bit(
    buf: *const BitBuffer,
    index_bits: usize,
) -> u8
Expand description

Get a byte value starting from the specified bit index in a BitBuffer instance. The resulting byte might correspond to a single byte (if the index is a multiple of 8), or two overlapping bytes combined. The index must be valid (i.e. less than the instance’s data size in bits).

§Arguments

  • [in] - buf pointer to a BitBuffer instance to be queried
  • [in] - index bit index of the byte in question