bit_buffer_write_bytes_mid

Function 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

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