22 #define RL_API __declspec(dllexport)
24 #define RL_API __declspec(dllimport)
45 size_t total_size()
const {
return element_size * (array_count > 0 ? array_count : 1); }
51 std::vector<SchemaField> fields;
53 std::string description;
61 using std::runtime_error::runtime_error;
RL_API TypeSchema parse_type_description(const std::string &description)
Parse a C struct type description string into a TypeSchema.
Exception thrown for parse errors.
Complete description of a parsed struct.
A single field in a parsed struct description.
size_t total_size() const
Total size of this field (element_size * max(array_count, 1))