![]() |
GFXprim
2D bitmap graphics library with emphasis on speed and correctness
|
Describe a single structure member for serializer and deserialzer. More...
#include <gp_json_serdes.h>

Data Fields | ||
| const char * | id | |
| JSON id. | ||
| size_t | offset | |
| Offset in the C structure. | ||
| enum json_serdes_type | type | |
| Variable type. | ||
| size_t | type_size | |
| Variable size, either explicit size or sizeof() | ||
| union { | ||
| }; | ||
| Optional value limits. | ||
Describe a single structure member for serializer and deserialzer.
Serialization and deserialization functions take an array sorted by id of these structures that describe subset of a structure memebers.
The array is usually constructed with the help of the GP_JSON_SERDES_FOO() macros.
Definition at line 84 of file gp_json_serdes.h.