Function flipperzero_sys::bit_buffer_copy_bytes
source · pub unsafe extern "C" fn bit_buffer_copy_bytes(
buf: *mut BitBuffer,
data: *const u8,
size_bytes: 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_bytes size of the data to be copied, in bytes