Byte verbs that append into a caller's span or read out of it. More...
Go to the source code of this file.
Data Structures | |
| struct | OctetusCfg |
| Arguments for the byteio calls, where each call reads only the members it needs. More... | |
| struct | OctetusIntroitusExitusNs |
| Type of the byteio dispatch table. More... | |
Functions | |
| void | mmgr_byteio_put (const OctetusCfg *args) |
| Appends args->byte to args->write_span. | |
| void | mmgr_byteio_put_be (const OctetusCfg *args) |
| Appends the low args->bytes of args->value to args->write_span, most significant byte first. | |
| void | mmgr_byteio_raw (const OctetusCfg *args) |
| Appends args->bytes from args->src to args->write_span as they are. | |
| embed_bool | mmgr_byteio_take_be (const OctetusCfg *args) |
| Reads a big endian value of args->bytes at args->read_span's cursor and advances past it. | |
| embed_bool | mmgr_byteio_rd_str (const OctetusCfg *args) |
| Reads a big endian 32-bit length at args->read_span's cursor, then points args->blob at the run behind it. | |
| embed_bool | mmgr_byteio_mpint_fixed (const OctetusCfg *args) |
| Right-aligns the big endian integer at args->src into args->write_span's whole buffer, zero filling ahead of it. | |
Variables | |
| static const OctetusIntroitusExitusNs | byteio |
| Dispatch table instance named byteio, with each member set to its mmgr_byteio_ function. | |
Byte verbs that append into a caller's span or read out of it.
Definition in file octetus_introitus_exitus.h.
| void mmgr_byteio_put | ( | const OctetusCfg * | args | ) |
Appends args->byte to args->write_span.
| [in,out] | args | Span and the byte to append [BORROWS]. |
References mmgr_byteio_put().
Referenced by mmgr_byteio_put().
| void mmgr_byteio_put_be | ( | const OctetusCfg * | args | ) |
Appends the low args->bytes of args->value to args->write_span, most significant byte first.
| [in,out] | args | Span, value and byte count [BORROWS]. |
References mmgr_byteio_put_be().
Referenced by mmgr_byteio_put_be().
| void mmgr_byteio_raw | ( | const OctetusCfg * | args | ) |
Appends args->bytes from args->src to args->write_span as they are.
| [in,out] | args | Span, source and byte count [BORROWS]. |
References mmgr_byteio_raw().
Referenced by mmgr_byteio_raw().
| embed_bool mmgr_byteio_take_be | ( | const OctetusCfg * | args | ) |
Reads a big endian value of args->bytes at args->read_span's cursor and advances past it.
| [in,out] | args | Span, byte count and where to store the value [BORROWS]. |
References mmgr_byteio_take_be().
Referenced by mmgr_byteio_take_be().
| embed_bool mmgr_byteio_rd_str | ( | const OctetusCfg * | args | ) |
Reads a big endian 32-bit length at args->read_span's cursor, then points args->blob at the run behind it.
| [in,out] | args | Span, and where to report the run and its length [BORROWS]. |
References mmgr_byteio_rd_str().
Referenced by mmgr_byteio_rd_str().
| embed_bool mmgr_byteio_mpint_fixed | ( | const OctetusCfg * | args | ) |
Right-aligns the big endian integer at args->src into args->write_span's whole buffer, zero filling ahead of it.
| [in,out] | args | The integer with its length in args->src and args->bytes, and the field as args->write_span [BORROWS]. |
References mmgr_byteio_mpint_fixed().
Referenced by mmgr_byteio_mpint_fixed().
|
static |
Dispatch table instance named byteio, with each member set to its mmgr_byteio_ function.
Definition at line 158 of file octetus_introitus_exitus.h.