pub unsafe extern "C" fn bit_buffer_write_bytes_with_parity(
buf: *const BitBuffer,
dest: *mut c_void,
size_bytes: usize,
bits_written: *mut usize,
)Expand description
Write a BitBuffer instance’s entire contents to an arbitrary memory location. Additionally, place a parity bit after each byte. The destination memory must be allocated. Additionally, the destination capacity must be no less than the source data size plus parity.
§Arguments
[in]- buf pointer to a BitBuffer instance to write from[out]- dest pointer to the destination memory location[in]- size_bytes maximum destination data size, in bytes[out]- bits_written actual number of bits writen, in bits