c0
C0DATA — structured data using ASCII C0 control codes (C)
Loading...
Searching...
No Matches
c0_unit Struct Reference

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

Detailed Description

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.

Field Documentation

◆ buf

const uint8_t* c0_unit::buf

◆ depth

size_t c0_unit::depth

0 for a unit of a record; a sub-unit's depth is the length of its SUB run

◆ raw

c0_bytes c0_unit::raw

the value with its layout: pass to c0_value / c0_unit_level / c0_unit_ref

◆ subs_end

size_t c0_unit::subs_end

◆ subs_start

size_t c0_unit::subs_start

its sub-units: [subs_start, subs_end), SUB runs each followed by US and a value


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