Bit writer state: the buffer, how much is written, and the partial byte. More...
#include <bitorum_introitus_exitus.h>
Data Fields | |
| uint8_t * | out |
| size_t | cap |
| size_t | bytes_written |
| uint8_t | residue |
| embed_word | bit_count |
| embed_bool | overflow |
Bit writer state: the buffer, how much is written, and the partial byte.
Definition at line 35 of file bitorum_introitus_exitus.h.
| uint8_t* mmgr_bitor::out |
Destination buffer [BORROWS].
Definition at line 37 of file bitorum_introitus_exitus.h.
| size_t mmgr_bitor::cap |
Bytes available in out.
Definition at line 38 of file bitorum_introitus_exitus.h.
| size_t mmgr_bitor::bytes_written |
Whole bytes written so far.
Definition at line 39 of file bitorum_introitus_exitus.h.
| uint8_t mmgr_bitor::residue |
Bits not yet written, in the low bit_count positions.
Definition at line 40 of file bitorum_introitus_exitus.h.
| embed_word mmgr_bitor::bit_count |
Bits stored in residue, always under 8.
Definition at line 41 of file bitorum_introitus_exitus.h.
| embed_bool mmgr_bitor::overflow |
Set once a request would pass cap, which blocks later writes.
Definition at line 42 of file bitorum_introitus_exitus.h.