MMgr v1.0.0
Zero-heap memory manager in C11. One borrowed buffer, carved by asserted offset.
Loading...
Searching...
No Matches
OctetusIntroitusExitusNs Struct Reference

Type of the byteio dispatch table. More...

#include <octetus_introitus_exitus.h>

Data Fields

void(*) put (const OctetusCfg *args)
void(*) put_be (const OctetusCfg *args)
void(*) raw (const OctetusCfg *args)
embed_bool(*) take_be (const OctetusCfg *args)
embed_bool(*) rd_str (const OctetusCfg *args)
embed_bool(*) mpint_fixed (const OctetusCfg *args)

Detailed Description

Type of the byteio dispatch table.

Note
EMBED_TABLE_LAYOUT asserts the six members sit at consecutive EMBED_FUNCTION_POINTER_BYTES offsets, with nothing else.
put, put_be and raw answer nothing, because a span latches its own failure and leaves a caller nothing to act on.
take_be and rd_str answer, because a read that did not happen has to be distinguishable from one that read a zero. mpint_fixed answers whether the integer fit the field.

Definition at line 69 of file octetus_introitus_exitus.h.

Field Documentation

◆ put

void(*) OctetusIntroitusExitusNs::put(const OctetusCfg *args)

Appends one byte.

Definition at line 71 of file octetus_introitus_exitus.h.

◆ put_be

void(*) OctetusIntroitusExitusNs::put_be(const OctetusCfg *args)

Appends bytes of a value, most significant first.

Definition at line 72 of file octetus_introitus_exitus.h.

◆ raw

void(*) OctetusIntroitusExitusNs::raw(const OctetusCfg *args)

Appends a run of bytes as they are.

Definition at line 73 of file octetus_introitus_exitus.h.

◆ take_be

embed_bool(*) OctetusIntroitusExitusNs::take_be(const OctetusCfg *args)

Reads a big endian value and advances past it.

Definition at line 74 of file octetus_introitus_exitus.h.

◆ rd_str

embed_bool(*) OctetusIntroitusExitusNs::rd_str(const OctetusCfg *args)

Reads a length-prefixed run and points at it.

Definition at line 75 of file octetus_introitus_exitus.h.

◆ mpint_fixed

embed_bool(*) OctetusIntroitusExitusNs::mpint_fixed(const OctetusCfg *args)

Right-aligns an integer into a fixed field.

Definition at line 76 of file octetus_introitus_exitus.h.


The documentation for this struct was generated from the following file: