pub unsafe extern "C" fn bit_buffer_copy_bytes_with_parity(
buf: *mut BitBuffer,
data: *const u8,
size_bits: usize,
)Expand description
Copy a byte with parity 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 intodata(direction in) - pointer to the byte array to be copiedsize_bits(direction in) - size of the data to be copied, in bits
Note: Parity bits are placed starting with the most significant bit of each byte and moving up. Note: Example: DDDDDDDD PDDDDDDD DPDDDDDD DDP…