Expand description
Bit-aligned reader and writer.
Per spec §4.6: bits are packed MSB-first into bytes. The first bit of the payload occupies the most-significant bit of the first byte. The final byte is zero-padded if needed.
Structs§
Functions§
- re_
emit_ bits - Reads exactly
bit_lenMSB-first bits fromsrc_bytesand appends them todst. Bits are sourced as ifsrc_byteswere the output of aBitWriterfinalized withinto_bytes()(so the trailing partial byte is in the high bits of the last source byte). The destination is extended in-place — no padding inserted.