CYAML Internals
|
#include <cyaml.h>
Data Fields | |
const char * | key |
uint32_t | data_offset |
uint32_t | count_offset |
uint8_t | count_size |
struct cyaml_schema_value | value |
Schema definition entry for mapping fields.
YAML mappings are key:value pairs. CYAML only supports scalar mapping keys, i.e. the keys must be strings. Each mapping field schema contains a cyaml_schema_value to define field's value.
The schema for mappings is composed of an array of entries of this data structure. It specifies the name of the key, and the type of the value. It also specifies the offset into the data at which value data should be placed. The array is terminated by an entry with a NULL key.
uint32_t cyaml_schema_field::count_offset |
CYAML_SEQUENCE only: Offset to sequence entry count member in mapping's data structure.
uint8_t cyaml_schema_field::count_size |
CYAML_SEQUENCE only: Size in bytes of sequence entry count member in mapping's data structure.
uint32_t cyaml_schema_field::data_offset |
Offset in data structure at which the value for this key should be placed / read from.
const char* cyaml_schema_field::key |
String for YAML mapping key that his schema entry describes, or NULL to indicated the end of an array of cyaml_schema_field entries.
struct cyaml_schema_value cyaml_schema_field::value |
Defines the schema for the mapping field's value.