Branch data Line data Source code
1 : : #ifndef REFLECTION_READER_H
2 : : #define REFLECTION_READER_H
3 : :
4 : : /* Generated by flatcc 0.4.0 FlatBuffers schema compiler for C by dvide.com */
5 : :
6 : : #ifndef FLATBUFFERS_COMMON_READER_H
7 : : #include "flatbuffers_common_reader.h"
8 : : #endif
9 : : #ifndef alignas
10 : : #include <stdalign.h>
11 : : #endif
12 : : #define PDIAGNOSTIC_IGNORE_UNUSED
13 : : #include "flatcc/portable/pdiagnostic_push.h"
14 : : #undef flatbuffers_identifier
15 : : #define flatbuffers_identifier "BFBS"
16 : : #undef flatbuffers_extension
17 : : #define flatbuffers_extension ".bfbs"
18 : :
19 : :
20 : : typedef const struct reflection_Type_table *reflection_Type_table_t;
21 : : typedef const flatbuffers_uoffset_t *reflection_Type_vec_t;
22 : : typedef flatbuffers_uoffset_t *reflection_Type_mutable_vec_t;
23 : : typedef const struct reflection_EnumVal_table *reflection_EnumVal_table_t;
24 : : typedef const flatbuffers_uoffset_t *reflection_EnumVal_vec_t;
25 : : typedef flatbuffers_uoffset_t *reflection_EnumVal_mutable_vec_t;
26 : : typedef const struct reflection_Enum_table *reflection_Enum_table_t;
27 : : typedef const flatbuffers_uoffset_t *reflection_Enum_vec_t;
28 : : typedef flatbuffers_uoffset_t *reflection_Enum_mutable_vec_t;
29 : : typedef const struct reflection_Field_table *reflection_Field_table_t;
30 : : typedef const flatbuffers_uoffset_t *reflection_Field_vec_t;
31 : : typedef flatbuffers_uoffset_t *reflection_Field_mutable_vec_t;
32 : : typedef const struct reflection_Object_table *reflection_Object_table_t;
33 : : typedef const flatbuffers_uoffset_t *reflection_Object_vec_t;
34 : : typedef flatbuffers_uoffset_t *reflection_Object_mutable_vec_t;
35 : : typedef const struct reflection_Schema_table *reflection_Schema_table_t;
36 : : typedef const flatbuffers_uoffset_t *reflection_Schema_vec_t;
37 : : typedef flatbuffers_uoffset_t *reflection_Schema_mutable_vec_t;
38 : :
39 : : typedef int8_t reflection_BaseType_enum_t;
40 : : __flatbuffers_define_integer_type(reflection_BaseType, reflection_BaseType_enum_t, 8)
41 : : #define reflection_BaseType_None ((reflection_BaseType_enum_t)0)
42 : : #define reflection_BaseType_UType ((reflection_BaseType_enum_t)1)
43 : : #define reflection_BaseType_Bool ((reflection_BaseType_enum_t)2)
44 : : #define reflection_BaseType_Byte ((reflection_BaseType_enum_t)3)
45 : : #define reflection_BaseType_UByte ((reflection_BaseType_enum_t)4)
46 : : #define reflection_BaseType_Short ((reflection_BaseType_enum_t)5)
47 : : #define reflection_BaseType_UShort ((reflection_BaseType_enum_t)6)
48 : : #define reflection_BaseType_Int ((reflection_BaseType_enum_t)7)
49 : : #define reflection_BaseType_UInt ((reflection_BaseType_enum_t)8)
50 : : #define reflection_BaseType_Long ((reflection_BaseType_enum_t)9)
51 : : #define reflection_BaseType_ULong ((reflection_BaseType_enum_t)10)
52 : : #define reflection_BaseType_Float ((reflection_BaseType_enum_t)11)
53 : : #define reflection_BaseType_Double ((reflection_BaseType_enum_t)12)
54 : : #define reflection_BaseType_String ((reflection_BaseType_enum_t)13)
55 : : #define reflection_BaseType_Vector ((reflection_BaseType_enum_t)14)
56 : : #define reflection_BaseType_Obj ((reflection_BaseType_enum_t)15)
57 : : #define reflection_BaseType_Union ((reflection_BaseType_enum_t)16)
58 : :
59 : : static inline const char *reflection_BaseType_name(reflection_BaseType_enum_t value)
60 : : {
61 : : switch (value) {
62 : : case reflection_BaseType_None: return "None";
63 : : case reflection_BaseType_UType: return "UType";
64 : : case reflection_BaseType_Bool: return "Bool";
65 : : case reflection_BaseType_Byte: return "Byte";
66 : : case reflection_BaseType_UByte: return "UByte";
67 : : case reflection_BaseType_Short: return "Short";
68 : : case reflection_BaseType_UShort: return "UShort";
69 : : case reflection_BaseType_Int: return "Int";
70 : : case reflection_BaseType_UInt: return "UInt";
71 : : case reflection_BaseType_Long: return "Long";
72 : : case reflection_BaseType_ULong: return "ULong";
73 : : case reflection_BaseType_Float: return "Float";
74 : : case reflection_BaseType_Double: return "Double";
75 : : case reflection_BaseType_String: return "String";
76 : : case reflection_BaseType_Vector: return "Vector";
77 : : case reflection_BaseType_Obj: return "Obj";
78 : : case reflection_BaseType_Union: return "Union";
79 : : default: return "";
80 : : }
81 : : }
82 : :
83 : :
84 : :
85 : : struct reflection_Type_table { uint8_t unused__; };
86 : :
87 : : #ifndef reflection_Type_identifier
88 : : #define reflection_Type_identifier flatbuffers_identifier
89 : : #endif
90 : : #define reflection_Type_type_hash ((flatbuffers_thash_t)0x44c8fe5e)
91 : : #define reflection_Type_type_identifier "\x5e\xfe\xc8\x44"
92 : : static inline size_t reflection_Type_vec_len(reflection_Type_vec_t vec)
93 : : __flatbuffers_vec_len(vec)
94 : : static inline reflection_Type_table_t reflection_Type_vec_at(reflection_Type_vec_t vec, size_t i)
95 : : __flatbuffers_offset_vec_at(reflection_Type_table_t, vec, i, 0)
96 : : __flatbuffers_table_as_root(reflection_Type)
97 : :
98 : : static inline reflection_BaseType_enum_t reflection_Type_base_type(reflection_Type_table_t t)
99 : : __flatbuffers_scalar_field(reflection_BaseType, 0, 0, t)
100 : : static inline int reflection_Type_base_type_is_present(reflection_Type_table_t t)
101 : : __flatbuffers_field_present(0, t)
102 : :
103 : : static inline reflection_BaseType_enum_t reflection_Type_element(reflection_Type_table_t t)
104 : : __flatbuffers_scalar_field(reflection_BaseType, 1, 0, t)
105 : : static inline int reflection_Type_element_is_present(reflection_Type_table_t t)
106 : : __flatbuffers_field_present(1, t)
107 : :
108 : : static inline int32_t reflection_Type_index(reflection_Type_table_t t)
109 : : __flatbuffers_scalar_field(flatbuffers_int32, 2, -1, t)
110 : : static inline int reflection_Type_index_is_present(reflection_Type_table_t t)
111 : : __flatbuffers_field_present(2, t)
112 : :
113 : :
114 : : struct reflection_EnumVal_table { uint8_t unused__; };
115 : :
116 : : #ifndef reflection_EnumVal_identifier
117 : : #define reflection_EnumVal_identifier flatbuffers_identifier
118 : : #endif
119 : : #define reflection_EnumVal_type_hash ((flatbuffers_thash_t)0x9531c946)
120 : : #define reflection_EnumVal_type_identifier "\x46\xc9\x31\x95"
121 : : static inline size_t reflection_EnumVal_vec_len(reflection_EnumVal_vec_t vec)
122 : : __flatbuffers_vec_len(vec)
123 : : static inline reflection_EnumVal_table_t reflection_EnumVal_vec_at(reflection_EnumVal_vec_t vec, size_t i)
124 : : __flatbuffers_offset_vec_at(reflection_EnumVal_table_t, vec, i, 0)
125 : : __flatbuffers_table_as_root(reflection_EnumVal)
126 : :
127 : : static inline flatbuffers_string_t reflection_EnumVal_name(reflection_EnumVal_table_t t)
128 : : __flatbuffers_vector_field(flatbuffers_string_t, 0, t, 1)
129 : : static inline int reflection_EnumVal_name_is_present(reflection_EnumVal_table_t t)
130 : : __flatbuffers_field_present(0, t)
131 : :
132 : : static inline int64_t reflection_EnumVal_value(reflection_EnumVal_table_t t)
133 : : __flatbuffers_scalar_field(flatbuffers_int64, 1, 0, t)
134 : : /* Note: find only works on vectors sorted by this field. */
135 : : __flatbuffers_define_find_by_scalar_field(reflection_EnumVal, value, int64_t)
136 : : __flatbuffers_define_sort_by_scalar_field(reflection_EnumVal, value, int64_t, flatbuffers_uoffset_t)
137 : : #define reflection_EnumVal_vec_find reflection_EnumVal_vec_find_by_value
138 : : #define reflection_EnumVal_vec_sort reflection_EnumVal_vec_sort_by_value
139 : : static inline int reflection_EnumVal_value_is_present(reflection_EnumVal_table_t t)
140 : : __flatbuffers_field_present(1, t)
141 : :
142 : : static inline reflection_Object_table_t reflection_EnumVal_object(reflection_EnumVal_table_t t)
143 : : __flatbuffers_table_field(reflection_Object_table_t, 2, t, 0)
144 : : static inline int reflection_EnumVal_object_is_present(reflection_EnumVal_table_t t)
145 : : __flatbuffers_field_present(2, t)
146 : :
147 : :
148 : : struct reflection_Enum_table { uint8_t unused__; };
149 : :
150 : : #ifndef reflection_Enum_identifier
151 : : #define reflection_Enum_identifier flatbuffers_identifier
152 : : #endif
153 : : #define reflection_Enum_type_hash ((flatbuffers_thash_t)0xacffa90f)
154 : : #define reflection_Enum_type_identifier "\x0f\xa9\xff\xac"
155 : : static inline size_t reflection_Enum_vec_len(reflection_Enum_vec_t vec)
156 : : __flatbuffers_vec_len(vec)
157 : : static inline reflection_Enum_table_t reflection_Enum_vec_at(reflection_Enum_vec_t vec, size_t i)
158 : : __flatbuffers_offset_vec_at(reflection_Enum_table_t, vec, i, 0)
159 : : __flatbuffers_table_as_root(reflection_Enum)
160 : :
161 : : static inline flatbuffers_string_t reflection_Enum_name(reflection_Enum_table_t t)
162 : : __flatbuffers_vector_field(flatbuffers_string_t, 0, t, 1)
163 : : /* Note: find only works on vectors sorted by this field. */
164 : : static inline size_t reflection_Enum_vec_find_by_name(reflection_Enum_vec_t vec, const char *s)
165 : : __flatbuffers_find_by_string_field(reflection_Enum_name, vec, reflection_Enum_vec_at, reflection_Enum_vec_len, s)
166 : : static inline size_t reflection_Enum_vec_find_n_by_name(reflection_Enum_vec_t vec, const char *s, int n)
167 : : __flatbuffers_find_by_string_n_field(reflection_Enum_name, vec, reflection_Enum_vec_at, reflection_Enum_vec_len, s, n)
168 : : __flatbuffers_define_sort_by_string_field(reflection_Enum, name)
169 : : #define reflection_Enum_vec_find reflection_Enum_vec_find_by_name
170 : : #define reflection_Enum_vec_find_n reflection_Enum_vec_find_n_by_name
171 : : #define reflection_Enum_vec_sort reflection_Enum_vec_sort_by_name
172 : : static inline int reflection_Enum_name_is_present(reflection_Enum_table_t t)
173 : : __flatbuffers_field_present(0, t)
174 : :
175 : : static inline reflection_EnumVal_vec_t reflection_Enum_values(reflection_Enum_table_t t)
176 : : __flatbuffers_vector_field(reflection_EnumVal_vec_t, 1, t, 1)
177 : : static inline int reflection_Enum_values_is_present(reflection_Enum_table_t t)
178 : : __flatbuffers_field_present(1, t)
179 : :
180 : : static inline flatbuffers_bool_t reflection_Enum_is_union(reflection_Enum_table_t t)
181 : : __flatbuffers_scalar_field(flatbuffers_bool, 2, 0, t)
182 : : static inline int reflection_Enum_is_union_is_present(reflection_Enum_table_t t)
183 : : __flatbuffers_field_present(2, t)
184 : :
185 : : static inline reflection_Type_table_t reflection_Enum_underlying_type(reflection_Enum_table_t t)
186 : : __flatbuffers_table_field(reflection_Type_table_t, 3, t, 1)
187 : : static inline int reflection_Enum_underlying_type_is_present(reflection_Enum_table_t t)
188 : : __flatbuffers_field_present(3, t)
189 : :
190 : :
191 : : struct reflection_Field_table { uint8_t unused__; };
192 : :
193 : : #ifndef reflection_Field_identifier
194 : : #define reflection_Field_identifier flatbuffers_identifier
195 : : #endif
196 : : #define reflection_Field_type_hash ((flatbuffers_thash_t)0x9f7e408a)
197 : : #define reflection_Field_type_identifier "\x8a\x40\x7e\x9f"
198 : : static inline size_t reflection_Field_vec_len(reflection_Field_vec_t vec)
199 [ + - ]: 15 : __flatbuffers_vec_len(vec)
200 : : static inline reflection_Field_table_t reflection_Field_vec_at(reflection_Field_vec_t vec, size_t i)
201 : 1472 : __flatbuffers_offset_vec_at(reflection_Field_table_t, vec, i, 0)
202 : : __flatbuffers_table_as_root(reflection_Field)
203 : :
204 : : static inline flatbuffers_string_t reflection_Field_name(reflection_Field_table_t t)
205 [ + - ][ + - ]: 1104 : __flatbuffers_vector_field(flatbuffers_string_t, 0, t, 1)
[ + - ][ + - ]
[ + - ][ + - ]
[ + - ][ + - ]
206 : : /* Note: find only works on vectors sorted by this field. */
207 : : static inline size_t reflection_Field_vec_find_by_name(reflection_Field_vec_t vec, const char *s)
208 : : __flatbuffers_find_by_string_field(reflection_Field_name, vec, reflection_Field_vec_at, reflection_Field_vec_len, s)
209 : : static inline size_t reflection_Field_vec_find_n_by_name(reflection_Field_vec_t vec, const char *s, int n)
210 : : __flatbuffers_find_by_string_n_field(reflection_Field_name, vec, reflection_Field_vec_at, reflection_Field_vec_len, s, n)
211 [ + + ][ + + ]: 860 : __flatbuffers_define_sort_by_string_field(reflection_Field, name)
[ + + ][ + + ]
[ + + ][ + + ]
[ + + ]
212 : : #define reflection_Field_vec_find reflection_Field_vec_find_by_name
213 : : #define reflection_Field_vec_find_n reflection_Field_vec_find_n_by_name
214 : : #define reflection_Field_vec_sort reflection_Field_vec_sort_by_name
215 : : static inline int reflection_Field_name_is_present(reflection_Field_table_t t)
216 : : __flatbuffers_field_present(0, t)
217 : :
218 : : static inline reflection_Type_table_t reflection_Field_type(reflection_Field_table_t t)
219 : : __flatbuffers_table_field(reflection_Type_table_t, 1, t, 1)
220 : : static inline int reflection_Field_type_is_present(reflection_Field_table_t t)
221 : : __flatbuffers_field_present(1, t)
222 : :
223 : : static inline uint16_t reflection_Field_id(reflection_Field_table_t t)
224 : : __flatbuffers_scalar_field(flatbuffers_uint16, 2, 0, t)
225 : : static inline int reflection_Field_id_is_present(reflection_Field_table_t t)
226 : : __flatbuffers_field_present(2, t)
227 : :
228 : : static inline uint16_t reflection_Field_offset(reflection_Field_table_t t)
229 : : __flatbuffers_scalar_field(flatbuffers_uint16, 3, 0, t)
230 : : static inline int reflection_Field_offset_is_present(reflection_Field_table_t t)
231 : : __flatbuffers_field_present(3, t)
232 : :
233 : : static inline int64_t reflection_Field_default_integer(reflection_Field_table_t t)
234 : : __flatbuffers_scalar_field(flatbuffers_int64, 4, 0, t)
235 : : static inline int reflection_Field_default_integer_is_present(reflection_Field_table_t t)
236 : : __flatbuffers_field_present(4, t)
237 : :
238 : : static inline double reflection_Field_default_real(reflection_Field_table_t t)
239 : : __flatbuffers_scalar_field(flatbuffers_double, 5, 0.000000, t)
240 : : static inline int reflection_Field_default_real_is_present(reflection_Field_table_t t)
241 : : __flatbuffers_field_present(5, t)
242 : :
243 : : static inline flatbuffers_bool_t reflection_Field_deprecated(reflection_Field_table_t t)
244 : : __flatbuffers_scalar_field(flatbuffers_bool, 6, 0, t)
245 : : static inline int reflection_Field_deprecated_is_present(reflection_Field_table_t t)
246 : : __flatbuffers_field_present(6, t)
247 : :
248 : : static inline flatbuffers_bool_t reflection_Field_required(reflection_Field_table_t t)
249 : : __flatbuffers_scalar_field(flatbuffers_bool, 7, 0, t)
250 : : static inline int reflection_Field_required_is_present(reflection_Field_table_t t)
251 : : __flatbuffers_field_present(7, t)
252 : :
253 : : static inline flatbuffers_bool_t reflection_Field_key(reflection_Field_table_t t)
254 : : __flatbuffers_scalar_field(flatbuffers_bool, 8, 0, t)
255 : : static inline int reflection_Field_key_is_present(reflection_Field_table_t t)
256 : : __flatbuffers_field_present(8, t)
257 : :
258 : :
259 : : struct reflection_Object_table { uint8_t unused__; };
260 : :
261 : : #ifndef reflection_Object_identifier
262 : : #define reflection_Object_identifier flatbuffers_identifier
263 : : #endif
264 : : #define reflection_Object_type_hash ((flatbuffers_thash_t)0xb09729bd)
265 : : #define reflection_Object_type_identifier "\xbd\x29\x97\xb0"
266 : : static inline size_t reflection_Object_vec_len(reflection_Object_vec_t vec)
267 [ + - ]: 17 : __flatbuffers_vec_len(vec)
268 : : static inline reflection_Object_table_t reflection_Object_vec_at(reflection_Object_vec_t vec, size_t i)
269 : 30 : __flatbuffers_offset_vec_at(reflection_Object_table_t, vec, i, 0)
270 : : __flatbuffers_table_as_root(reflection_Object)
271 : :
272 : : static inline flatbuffers_string_t reflection_Object_name(reflection_Object_table_t t)
273 : : __flatbuffers_vector_field(flatbuffers_string_t, 0, t, 1)
274 : : /* Note: find only works on vectors sorted by this field. */
275 : : static inline size_t reflection_Object_vec_find_by_name(reflection_Object_vec_t vec, const char *s)
276 : : __flatbuffers_find_by_string_field(reflection_Object_name, vec, reflection_Object_vec_at, reflection_Object_vec_len, s)
277 : : static inline size_t reflection_Object_vec_find_n_by_name(reflection_Object_vec_t vec, const char *s, int n)
278 : : __flatbuffers_find_by_string_n_field(reflection_Object_name, vec, reflection_Object_vec_at, reflection_Object_vec_len, s, n)
279 : : __flatbuffers_define_sort_by_string_field(reflection_Object, name)
280 : : #define reflection_Object_vec_find reflection_Object_vec_find_by_name
281 : : #define reflection_Object_vec_find_n reflection_Object_vec_find_n_by_name
282 : : #define reflection_Object_vec_sort reflection_Object_vec_sort_by_name
283 : : static inline int reflection_Object_name_is_present(reflection_Object_table_t t)
284 : : __flatbuffers_field_present(0, t)
285 : :
286 : : static inline reflection_Field_vec_t reflection_Object_fields(reflection_Object_table_t t)
287 [ + - ][ + - ]: 30 : __flatbuffers_vector_field(reflection_Field_vec_t, 1, t, 1)
288 : : static inline int reflection_Object_fields_is_present(reflection_Object_table_t t)
289 : : __flatbuffers_field_present(1, t)
290 : :
291 : : static inline flatbuffers_bool_t reflection_Object_is_struct(reflection_Object_table_t t)
292 : : __flatbuffers_scalar_field(flatbuffers_bool, 2, 0, t)
293 : : static inline int reflection_Object_is_struct_is_present(reflection_Object_table_t t)
294 : : __flatbuffers_field_present(2, t)
295 : :
296 : : static inline int32_t reflection_Object_minalign(reflection_Object_table_t t)
297 : : __flatbuffers_scalar_field(flatbuffers_int32, 3, 0, t)
298 : : static inline int reflection_Object_minalign_is_present(reflection_Object_table_t t)
299 : : __flatbuffers_field_present(3, t)
300 : :
301 : : static inline int32_t reflection_Object_bytesize(reflection_Object_table_t t)
302 : : __flatbuffers_scalar_field(flatbuffers_int32, 4, 0, t)
303 : : static inline int reflection_Object_bytesize_is_present(reflection_Object_table_t t)
304 : : __flatbuffers_field_present(4, t)
305 : :
306 : :
307 : : struct reflection_Schema_table { uint8_t unused__; };
308 : :
309 : : #ifndef reflection_Schema_identifier
310 : : #define reflection_Schema_identifier flatbuffers_identifier
311 : : #endif
312 : : #define reflection_Schema_type_hash ((flatbuffers_thash_t)0xfaf93779)
313 : : #define reflection_Schema_type_identifier "\x79\x37\xf9\xfa"
314 : : static inline size_t reflection_Schema_vec_len(reflection_Schema_vec_t vec)
315 : : __flatbuffers_vec_len(vec)
316 : : static inline reflection_Schema_table_t reflection_Schema_vec_at(reflection_Schema_vec_t vec, size_t i)
317 : : __flatbuffers_offset_vec_at(reflection_Schema_table_t, vec, i, 0)
318 [ + - ][ + - ]: 2 : __flatbuffers_table_as_root(reflection_Schema)
319 : :
320 : : static inline reflection_Object_vec_t reflection_Schema_objects(reflection_Schema_table_t t)
321 [ + - ][ + - ]: 4 : __flatbuffers_vector_field(reflection_Object_vec_t, 0, t, 1)
322 : : static inline int reflection_Schema_objects_is_present(reflection_Schema_table_t t)
323 : : __flatbuffers_field_present(0, t)
324 : :
325 : : static inline reflection_Enum_vec_t reflection_Schema_enums(reflection_Schema_table_t t)
326 : : __flatbuffers_vector_field(reflection_Enum_vec_t, 1, t, 1)
327 : : static inline int reflection_Schema_enums_is_present(reflection_Schema_table_t t)
328 : : __flatbuffers_field_present(1, t)
329 : :
330 : : static inline flatbuffers_string_t reflection_Schema_file_ident(reflection_Schema_table_t t)
331 : : __flatbuffers_vector_field(flatbuffers_string_t, 2, t, 0)
332 : : static inline int reflection_Schema_file_ident_is_present(reflection_Schema_table_t t)
333 : : __flatbuffers_field_present(2, t)
334 : :
335 : : static inline flatbuffers_string_t reflection_Schema_file_ext(reflection_Schema_table_t t)
336 : : __flatbuffers_vector_field(flatbuffers_string_t, 3, t, 0)
337 : : static inline int reflection_Schema_file_ext_is_present(reflection_Schema_table_t t)
338 : : __flatbuffers_field_present(3, t)
339 : :
340 : : static inline reflection_Object_table_t reflection_Schema_root_table(reflection_Schema_table_t t)
341 : : __flatbuffers_table_field(reflection_Object_table_t, 4, t, 0)
342 : : static inline int reflection_Schema_root_table_is_present(reflection_Schema_table_t t)
343 : : __flatbuffers_field_present(4, t)
344 : :
345 : :
346 : : #include "flatcc/portable/pdiagnostic_pop.h"
347 : : #endif /* REFLECTION_READER_H */
|