Function flipperzero_sys::bit_buffer_copy_bits
source · pub unsafe extern "C" fn bit_buffer_copy_bits(
buf: *mut BitBuffer,
data: *const u8,
size_bits: usize,
)Expand description
Copy a byte array to a BitBuffer instance, replacing all of the original data. The destination capacity must be no less than the source data size.
§Arguments
[in,out]- buf pointer to a BitBuffer instance to copy into[in]- data pointer to the byte array to be copied[in]- size_bits size of the data to be copied, in bits