Function flipperzero_sys::bit_buffer_write_bytes_mid

source ·
pub unsafe extern "C" fn bit_buffer_write_bytes_mid(
    buf: *const BitBuffer,
    dest: *mut c_void,
    start_index: usize,
    size_bytes: usize,
)
Expand description

Write a slice of BitBuffer instance’s contents to an arbitrary memory location. The destination memory must be allocated. Additionally, the destination capacity must be no less than the requested slice size.

§Arguments

  • [in] - buf pointer to a BitBuffer instance to write from
  • [out] - dest pointer to the destination memory location
  • [in] - start_index index to begin copying source data from
  • [in] - size_bytes data slice size, in bytes