bit_buffer_copy_bits

Function 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

  • buf (direction in, out) - pointer to a BitBuffer instance to copy into
  • data (direction in) - pointer to the byte array to be copied
  • size_bits (direction in) - size of the data to be copied, in bits