pub unsafe extern "C" fn bit_buffer_get_byte_from_bit(
buf: *const BitBuffer,
index_bits: usize,
) -> u8Expand description
Get a byte value starting from the specified bit index in a BitBuffer instance.
The resulting byte might correspond to a single byte (if the index is a multiple of 8), or two overlapping bytes combined. The index must be valid (i.e. less than the instance’s data size in bits).
§Arguments
buf(direction in) - pointer to a BitBuffer instance to be queriedindex_bits(direction in) - bit index of the byte in question
§Returns
byte value