|
c0
C0DATA — structured data using ASCII C0 control codes (C)
|
A unit with its sub-units (DESIGN.md "Subordinates"): SUB before US makes the unit after a child of the unit before, ␞a␟b␚␟c is two units and b holds c; ␞a␚␟b␚␟c is a holding b and c; ␞a␚␟b␚␚␟c is a holding b holding c (the SUB run's length is the depth). More...
#include <c0.h>
Data Fields | |
| c0_bytes | raw |
| the value with its layout: pass to c0_value / c0_unit_level / c0_unit_ref | |
| const uint8_t * | buf |
| size_t | subs_start |
| its sub-units: [subs_start, subs_end), SUB runs each followed by US and a value | |
| size_t | subs_end |
| size_t | depth |
| 0 for a unit of a record; a sub-unit's depth is the length of its SUB run | |
A unit with its sub-units (DESIGN.md "Subordinates"): SUB before US makes the unit after a child of the unit before, ␞a␟b␚␟c is two units and b holds c; ␞a␚␟b␚␟c is a holding b and c; ␞a␚␟b␚␚␟c is a holding b holding c (the SUB run's length is the depth).
A keyed unit's value takes sub-units the same way.
| const uint8_t* c0_unit::buf |
| size_t c0_unit::depth |
0 for a unit of a record; a sub-unit's depth is the length of its SUB run
| c0_bytes c0_unit::raw |
the value with its layout: pass to c0_value / c0_unit_level / c0_unit_ref
| size_t c0_unit::subs_end |
| size_t c0_unit::subs_start |
its sub-units: [subs_start, subs_end), SUB runs each followed by US and a value