MMgr v2.3.0
Zero-heap memory manager in C11. One borrowed buffer, carved by asserted offset.
Loading...
Searching...
No Matches
mmgr_fval Struct Reference

One value, tagged with the type that selects which arm of as holds it. More...

#include <numeros_scribo.h>

Data Structures

union  [union].as

Data Fields

mmgr_fk type
union  as
uint8_t width

Detailed Description

One value, tagged with the type that selects which arm of as holds it.

Note
numer_build requires type to equal the field's type, and abandons the whole write when it does not.
numer_emit takes width from here, where numer_build takes it from the field.
Warning
numer_emit_one reads the arm that type names and no other. A value whose type and filled arm disagree formats whatever that arm holds.

Definition at line 98 of file numeros_scribo.h.

Field Documentation

◆ type

mmgr_fk mmgr_fval::type

Which arm of as holds the value.

Definition at line 100 of file numeros_scribo.h.

◆ as

union mmgr_fval::[union].as mmgr_fval::as

The value, under the arm that type names.

◆ width

uint8_t mmgr_fval::width

Width numer_emit gives this value, or 0 to take the type's default from s_type.

Definition at line 109 of file numeros_scribo.h.


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