Bit writer state, its arguments, and the bitio dispatch table. More...
#include "mmgr.h"Go to the source code of this file.
Data Structures | |
| struct | mmgr_bitor |
| Bit writer state: the buffer, how much is written, and the partial byte. More... | |
| struct | BitorumCfg |
| Arguments for the bitor calls, where each call reads only the members it needs. More... | |
| struct | BitorumIntroitusExitusNs |
| Type of the bitio dispatch table. More... | |
Functions | |
| mmgr_bitor | mmgr_bitor_init (const BitorumCfg *args) |
| Builds a bit writer over args->out with capacity args->cap. | |
| void | mmgr_bitor_put (const BitorumCfg *args) |
| Appends the low args->bit_count bits of args->val to args->writer. | |
| void | mmgr_bitor_align (const BitorumCfg *args) |
| Writes the partial byte the writer still holds, padded with zeros above its bits. | |
Variables | |
| static const BitorumIntroitusExitusNs | bitio |
| Dispatch table instance named bitio, with each member set to its mmgr_bitor_ function. | |
Bit writer state, its arguments, and the bitio dispatch table.
Definition in file bitorum_introitus_exitus.h.
| mmgr_bitor mmgr_bitor_init | ( | const BitorumCfg * | args | ) |
Builds a bit writer over args->out with capacity args->cap.
| [in] | args | Buffer and capacity [BORROWS]. |
References mmgr_bitor_init().
Referenced by mmgr_bitor_init().
| void mmgr_bitor_put | ( | const BitorumCfg * | args | ) |
Appends the low args->bit_count bits of args->val to args->writer.
| [in,out] | args | Writer, value and bit count [BORROWS]. |
References mmgr_bitor_put().
Referenced by mmgr_bitor_put().
| void mmgr_bitor_align | ( | const BitorumCfg * | args | ) |
Writes the partial byte the writer still holds, padded with zeros above its bits.
| [in,out] | args | Writer to finish [BORROWS]. |
References mmgr_bitor_align().
Referenced by mmgr_bitor_align().
|
static |
Dispatch table instance named bitio, with each member set to its mmgr_bitor_ function.
Definition at line 117 of file bitorum_introitus_exitus.h.