CYAML Internals
|
Data Fields | ||
enum cyaml_state_e | state | |
size_t | line | |
size_t | column | |
const cyaml_schema_value_t * | schema | |
union { | ||
struct { | ||
uint32_t doc_count | ||
} stream | ||
struct { | ||
const cyaml_schema_field_t * fields | ||
cyaml_bitfield_t * fields_set | ||
uint16_t fields_count | ||
uint16_t fields_idx | ||
} mapping | ||
struct { | ||
uint8_t * data | ||
uint8_t * count_data | ||
uint32_t count | ||
uint8_t count_size | ||
} sequence | ||
}; | ||
union { | ||
struct { | ||
const cyaml_schema_field_t * field | ||
} mapping | ||
struct { | ||
uint64_t entry | ||
uint64_t count | ||
} sequence | ||
}; | ||
const uint8_t * | data | |
bool | done | |
A CYAML load state machine stack entry.
A CYAML save state machine stack entry.
union { ... } cyaml_state |
Anonymous union for schema type specific state.
union { ... } cyaml_state |
Anonymous union for schema type specific state.
size_t cyaml_state::column |
Event start position in YAML source.
uint8_t * cyaml_state::data |
Pointer to output client data for this state.
const uint8_t* cyaml_state::data |
Start of client value data for this state.
uint32_t cyaml_state::doc_count |
Number of documents read in stream.
bool cyaml_state::done |
Whether the state has been handled.
cyaml_bitfield_t* cyaml_state::fields_set |
Bit field of mapping fields found.
size_t cyaml_state::line |
Event start position in YAML source.
struct { ... } cyaml_state::mapping |
Additional state for CYAML_STATE_IN_MAP_KEY and CYAML_STATE_IN_MAP_VALUE states.
struct { ... } cyaml_state::mapping |
Additional state for CYAML_STATE_IN_MAP_KEY and CYAML_STATE_IN_MAP_VALUE states.
const cyaml_schema_value_t * cyaml_state::schema |
Schema for the expected value in this state.
struct { ... } cyaml_state::sequence |
Additional state for CYAML_STATE_IN_SEQUENCE state.
struct { ... } cyaml_state::sequence |
Additional state for CYAML_STATE_IN_SEQUENCE state.
enum cyaml_state_e cyaml_state::state |
Current load state machine state.
Current save state machine state.
struct { ... } cyaml_state::stream |
Additional state for CYAML_STATE_IN_STREAM state.