reflection_builder.h (24292B)
1 #ifndef REFLECTION_BUILDER_H 2 #define REFLECTION_BUILDER_H 3 4 /* Generated by flatcc 0.6.1 FlatBuffers schema compiler for C by dvide.com */ 5 6 #ifndef REFLECTION_READER_H 7 #include "reflection_reader.h" 8 #endif 9 #ifndef FLATBUFFERS_COMMON_BUILDER_H 10 #include "flatbuffers_common_builder.h" 11 #endif 12 #include "flatcc/flatcc_prologue.h" 13 #undef flatbuffers_identifier 14 #define flatbuffers_identifier "BFBS" 15 #undef flatbuffers_extension 16 #define flatbuffers_extension "bfbs" 17 18 #define __reflection_BaseType_formal_args , reflection_BaseType_enum_t v0 19 #define __reflection_BaseType_call_args , v0 20 __flatbuffers_build_scalar(flatbuffers_, reflection_BaseType, reflection_BaseType_enum_t) 21 22 static const flatbuffers_voffset_t __reflection_Type_required[] = { 0 }; 23 typedef flatbuffers_ref_t reflection_Type_ref_t; 24 static reflection_Type_ref_t reflection_Type_clone(flatbuffers_builder_t *B, reflection_Type_table_t t); 25 __flatbuffers_build_table(flatbuffers_, reflection_Type, 4) 26 27 static const flatbuffers_voffset_t __reflection_KeyValue_required[] = { 0, 0 }; 28 typedef flatbuffers_ref_t reflection_KeyValue_ref_t; 29 static reflection_KeyValue_ref_t reflection_KeyValue_clone(flatbuffers_builder_t *B, reflection_KeyValue_table_t t); 30 __flatbuffers_build_table(flatbuffers_, reflection_KeyValue, 2) 31 32 static const flatbuffers_voffset_t __reflection_EnumVal_required[] = { 0, 0 }; 33 typedef flatbuffers_ref_t reflection_EnumVal_ref_t; 34 static reflection_EnumVal_ref_t reflection_EnumVal_clone(flatbuffers_builder_t *B, reflection_EnumVal_table_t t); 35 __flatbuffers_build_table(flatbuffers_, reflection_EnumVal, 5) 36 37 static const flatbuffers_voffset_t __reflection_Enum_required[] = { 0, 1, 3, 0 }; 38 typedef flatbuffers_ref_t reflection_Enum_ref_t; 39 static reflection_Enum_ref_t reflection_Enum_clone(flatbuffers_builder_t *B, reflection_Enum_table_t t); 40 __flatbuffers_build_table(flatbuffers_, reflection_Enum, 6) 41 42 static const flatbuffers_voffset_t __reflection_Field_required[] = { 0, 1, 0 }; 43 typedef flatbuffers_ref_t reflection_Field_ref_t; 44 static reflection_Field_ref_t reflection_Field_clone(flatbuffers_builder_t *B, reflection_Field_table_t t); 45 __flatbuffers_build_table(flatbuffers_, reflection_Field, 12) 46 47 static const flatbuffers_voffset_t __reflection_Object_required[] = { 0, 1, 0 }; 48 typedef flatbuffers_ref_t reflection_Object_ref_t; 49 static reflection_Object_ref_t reflection_Object_clone(flatbuffers_builder_t *B, reflection_Object_table_t t); 50 __flatbuffers_build_table(flatbuffers_, reflection_Object, 7) 51 52 static const flatbuffers_voffset_t __reflection_RPCCall_required[] = { 0, 1, 2, 0 }; 53 typedef flatbuffers_ref_t reflection_RPCCall_ref_t; 54 static reflection_RPCCall_ref_t reflection_RPCCall_clone(flatbuffers_builder_t *B, reflection_RPCCall_table_t t); 55 __flatbuffers_build_table(flatbuffers_, reflection_RPCCall, 5) 56 57 static const flatbuffers_voffset_t __reflection_Service_required[] = { 0, 0 }; 58 typedef flatbuffers_ref_t reflection_Service_ref_t; 59 static reflection_Service_ref_t reflection_Service_clone(flatbuffers_builder_t *B, reflection_Service_table_t t); 60 __flatbuffers_build_table(flatbuffers_, reflection_Service, 4) 61 62 static const flatbuffers_voffset_t __reflection_Schema_required[] = { 0, 1, 0 }; 63 typedef flatbuffers_ref_t reflection_Schema_ref_t; 64 static reflection_Schema_ref_t reflection_Schema_clone(flatbuffers_builder_t *B, reflection_Schema_table_t t); 65 __flatbuffers_build_table(flatbuffers_, reflection_Schema, 6) 66 67 #define __reflection_Type_formal_args , reflection_BaseType_enum_t v0, reflection_BaseType_enum_t v1, int32_t v2, uint16_t v3 68 #define __reflection_Type_call_args , v0, v1, v2, v3 69 static inline reflection_Type_ref_t reflection_Type_create(flatbuffers_builder_t *B __reflection_Type_formal_args); 70 __flatbuffers_build_table_prolog(flatbuffers_, reflection_Type, reflection_Type_file_identifier, reflection_Type_type_identifier) 71 72 #define __reflection_KeyValue_formal_args , flatbuffers_string_ref_t v0, flatbuffers_string_ref_t v1 73 #define __reflection_KeyValue_call_args , v0, v1 74 static inline reflection_KeyValue_ref_t reflection_KeyValue_create(flatbuffers_builder_t *B __reflection_KeyValue_formal_args); 75 __flatbuffers_build_table_prolog(flatbuffers_, reflection_KeyValue, reflection_KeyValue_file_identifier, reflection_KeyValue_type_identifier) 76 77 #define __reflection_EnumVal_formal_args ,\ 78 flatbuffers_string_ref_t v0, int64_t v1, reflection_Object_ref_t v2, reflection_Type_ref_t v3, flatbuffers_string_vec_ref_t v4 79 #define __reflection_EnumVal_call_args ,\ 80 v0, v1, v2, v3, v4 81 static inline reflection_EnumVal_ref_t reflection_EnumVal_create(flatbuffers_builder_t *B __reflection_EnumVal_formal_args); 82 __flatbuffers_build_table_prolog(flatbuffers_, reflection_EnumVal, reflection_EnumVal_file_identifier, reflection_EnumVal_type_identifier) 83 84 #define __reflection_Enum_formal_args ,\ 85 flatbuffers_string_ref_t v0, reflection_EnumVal_vec_ref_t v1, flatbuffers_bool_t v2, reflection_Type_ref_t v3, reflection_KeyValue_vec_ref_t v4, flatbuffers_string_vec_ref_t v5 86 #define __reflection_Enum_call_args ,\ 87 v0, v1, v2, v3, v4, v5 88 static inline reflection_Enum_ref_t reflection_Enum_create(flatbuffers_builder_t *B __reflection_Enum_formal_args); 89 __flatbuffers_build_table_prolog(flatbuffers_, reflection_Enum, reflection_Enum_file_identifier, reflection_Enum_type_identifier) 90 91 #define __reflection_Field_formal_args ,\ 92 flatbuffers_string_ref_t v0, reflection_Type_ref_t v1, uint16_t v2, uint16_t v3,\ 93 int64_t v4, double v5, flatbuffers_bool_t v6, flatbuffers_bool_t v7,\ 94 flatbuffers_bool_t v8, reflection_KeyValue_vec_ref_t v9, flatbuffers_string_vec_ref_t v10, flatbuffers_bool_t v11 95 #define __reflection_Field_call_args ,\ 96 v0, v1, v2, v3,\ 97 v4, v5, v6, v7,\ 98 v8, v9, v10, v11 99 static inline reflection_Field_ref_t reflection_Field_create(flatbuffers_builder_t *B __reflection_Field_formal_args); 100 __flatbuffers_build_table_prolog(flatbuffers_, reflection_Field, reflection_Field_file_identifier, reflection_Field_type_identifier) 101 102 #define __reflection_Object_formal_args ,\ 103 flatbuffers_string_ref_t v0, reflection_Field_vec_ref_t v1, flatbuffers_bool_t v2, int32_t v3,\ 104 int32_t v4, reflection_KeyValue_vec_ref_t v5, flatbuffers_string_vec_ref_t v6 105 #define __reflection_Object_call_args ,\ 106 v0, v1, v2, v3,\ 107 v4, v5, v6 108 static inline reflection_Object_ref_t reflection_Object_create(flatbuffers_builder_t *B __reflection_Object_formal_args); 109 __flatbuffers_build_table_prolog(flatbuffers_, reflection_Object, reflection_Object_file_identifier, reflection_Object_type_identifier) 110 111 #define __reflection_RPCCall_formal_args ,\ 112 flatbuffers_string_ref_t v0, reflection_Object_ref_t v1, reflection_Object_ref_t v2, reflection_KeyValue_vec_ref_t v3, flatbuffers_string_vec_ref_t v4 113 #define __reflection_RPCCall_call_args ,\ 114 v0, v1, v2, v3, v4 115 static inline reflection_RPCCall_ref_t reflection_RPCCall_create(flatbuffers_builder_t *B __reflection_RPCCall_formal_args); 116 __flatbuffers_build_table_prolog(flatbuffers_, reflection_RPCCall, reflection_RPCCall_file_identifier, reflection_RPCCall_type_identifier) 117 118 #define __reflection_Service_formal_args , flatbuffers_string_ref_t v0, reflection_RPCCall_vec_ref_t v1, reflection_KeyValue_vec_ref_t v2, flatbuffers_string_vec_ref_t v3 119 #define __reflection_Service_call_args , v0, v1, v2, v3 120 static inline reflection_Service_ref_t reflection_Service_create(flatbuffers_builder_t *B __reflection_Service_formal_args); 121 __flatbuffers_build_table_prolog(flatbuffers_, reflection_Service, reflection_Service_file_identifier, reflection_Service_type_identifier) 122 123 #define __reflection_Schema_formal_args ,\ 124 reflection_Object_vec_ref_t v0, reflection_Enum_vec_ref_t v1, flatbuffers_string_ref_t v2, flatbuffers_string_ref_t v3, reflection_Object_ref_t v4, reflection_Service_vec_ref_t v5 125 #define __reflection_Schema_call_args ,\ 126 v0, v1, v2, v3, v4, v5 127 static inline reflection_Schema_ref_t reflection_Schema_create(flatbuffers_builder_t *B __reflection_Schema_formal_args); 128 __flatbuffers_build_table_prolog(flatbuffers_, reflection_Schema, reflection_Schema_file_identifier, reflection_Schema_type_identifier) 129 130 __flatbuffers_build_scalar_field(0, flatbuffers_, reflection_Type_base_type, reflection_BaseType, reflection_BaseType_enum_t, 1, 1, INT8_C(0), reflection_Type) 131 __flatbuffers_build_scalar_field(1, flatbuffers_, reflection_Type_element, reflection_BaseType, reflection_BaseType_enum_t, 1, 1, INT8_C(0), reflection_Type) 132 __flatbuffers_build_scalar_field(2, flatbuffers_, reflection_Type_index, flatbuffers_int32, int32_t, 4, 4, INT32_C(-1), reflection_Type) 133 __flatbuffers_build_scalar_field(3, flatbuffers_, reflection_Type_fixed_length, flatbuffers_uint16, uint16_t, 2, 2, UINT16_C(0), reflection_Type) 134 135 static inline reflection_Type_ref_t reflection_Type_create(flatbuffers_builder_t *B __reflection_Type_formal_args) 136 { 137 if (reflection_Type_start(B) 138 || reflection_Type_index_add(B, v2) 139 || reflection_Type_fixed_length_add(B, v3) 140 || reflection_Type_base_type_add(B, v0) 141 || reflection_Type_element_add(B, v1)) { 142 return 0; 143 } 144 return reflection_Type_end(B); 145 } 146 147 static reflection_Type_ref_t reflection_Type_clone(flatbuffers_builder_t *B, reflection_Type_table_t t) 148 { 149 __flatbuffers_memoize_begin(B, t); 150 if (reflection_Type_start(B) 151 || reflection_Type_index_pick(B, t) 152 || reflection_Type_fixed_length_pick(B, t) 153 || reflection_Type_base_type_pick(B, t) 154 || reflection_Type_element_pick(B, t)) { 155 return 0; 156 } 157 __flatbuffers_memoize_end(B, t, reflection_Type_end(B)); 158 } 159 160 __flatbuffers_build_string_field(0, flatbuffers_, reflection_KeyValue_key, reflection_KeyValue) 161 __flatbuffers_build_string_field(1, flatbuffers_, reflection_KeyValue_value, reflection_KeyValue) 162 163 static inline reflection_KeyValue_ref_t reflection_KeyValue_create(flatbuffers_builder_t *B __reflection_KeyValue_formal_args) 164 { 165 if (reflection_KeyValue_start(B) 166 || reflection_KeyValue_key_add(B, v0) 167 || reflection_KeyValue_value_add(B, v1)) { 168 return 0; 169 } 170 return reflection_KeyValue_end(B); 171 } 172 173 static reflection_KeyValue_ref_t reflection_KeyValue_clone(flatbuffers_builder_t *B, reflection_KeyValue_table_t t) 174 { 175 __flatbuffers_memoize_begin(B, t); 176 if (reflection_KeyValue_start(B) 177 || reflection_KeyValue_key_pick(B, t) 178 || reflection_KeyValue_value_pick(B, t)) { 179 return 0; 180 } 181 __flatbuffers_memoize_end(B, t, reflection_KeyValue_end(B)); 182 } 183 184 __flatbuffers_build_string_field(0, flatbuffers_, reflection_EnumVal_name, reflection_EnumVal) 185 __flatbuffers_build_scalar_field(1, flatbuffers_, reflection_EnumVal_value, flatbuffers_int64, int64_t, 8, 8, INT64_C(0), reflection_EnumVal) 186 __flatbuffers_build_table_field(2, flatbuffers_, reflection_EnumVal_object, reflection_Object, reflection_EnumVal) 187 __flatbuffers_build_table_field(3, flatbuffers_, reflection_EnumVal_union_type, reflection_Type, reflection_EnumVal) 188 __flatbuffers_build_string_vector_field(4, flatbuffers_, reflection_EnumVal_documentation, reflection_EnumVal) 189 190 static inline reflection_EnumVal_ref_t reflection_EnumVal_create(flatbuffers_builder_t *B __reflection_EnumVal_formal_args) 191 { 192 if (reflection_EnumVal_start(B) 193 || reflection_EnumVal_value_add(B, v1) 194 || reflection_EnumVal_name_add(B, v0) 195 || reflection_EnumVal_object_add(B, v2) 196 || reflection_EnumVal_union_type_add(B, v3) 197 || reflection_EnumVal_documentation_add(B, v4)) { 198 return 0; 199 } 200 return reflection_EnumVal_end(B); 201 } 202 203 static reflection_EnumVal_ref_t reflection_EnumVal_clone(flatbuffers_builder_t *B, reflection_EnumVal_table_t t) 204 { 205 __flatbuffers_memoize_begin(B, t); 206 if (reflection_EnumVal_start(B) 207 || reflection_EnumVal_value_pick(B, t) 208 || reflection_EnumVal_name_pick(B, t) 209 || reflection_EnumVal_object_pick(B, t) 210 || reflection_EnumVal_union_type_pick(B, t) 211 || reflection_EnumVal_documentation_pick(B, t)) { 212 return 0; 213 } 214 __flatbuffers_memoize_end(B, t, reflection_EnumVal_end(B)); 215 } 216 217 __flatbuffers_build_string_field(0, flatbuffers_, reflection_Enum_name, reflection_Enum) 218 /* vector has keyed elements */ 219 __flatbuffers_build_table_vector_field(1, flatbuffers_, reflection_Enum_values, reflection_EnumVal, reflection_Enum) 220 __flatbuffers_build_scalar_field(2, flatbuffers_, reflection_Enum_is_union, flatbuffers_bool, flatbuffers_bool_t, 1, 1, UINT8_C(0), reflection_Enum) 221 __flatbuffers_build_table_field(3, flatbuffers_, reflection_Enum_underlying_type, reflection_Type, reflection_Enum) 222 /* vector has keyed elements */ 223 __flatbuffers_build_table_vector_field(4, flatbuffers_, reflection_Enum_attributes, reflection_KeyValue, reflection_Enum) 224 __flatbuffers_build_string_vector_field(5, flatbuffers_, reflection_Enum_documentation, reflection_Enum) 225 226 static inline reflection_Enum_ref_t reflection_Enum_create(flatbuffers_builder_t *B __reflection_Enum_formal_args) 227 { 228 if (reflection_Enum_start(B) 229 || reflection_Enum_name_add(B, v0) 230 || reflection_Enum_values_add(B, v1) 231 || reflection_Enum_underlying_type_add(B, v3) 232 || reflection_Enum_attributes_add(B, v4) 233 || reflection_Enum_documentation_add(B, v5) 234 || reflection_Enum_is_union_add(B, v2)) { 235 return 0; 236 } 237 return reflection_Enum_end(B); 238 } 239 240 static reflection_Enum_ref_t reflection_Enum_clone(flatbuffers_builder_t *B, reflection_Enum_table_t t) 241 { 242 __flatbuffers_memoize_begin(B, t); 243 if (reflection_Enum_start(B) 244 || reflection_Enum_name_pick(B, t) 245 || reflection_Enum_values_pick(B, t) 246 || reflection_Enum_underlying_type_pick(B, t) 247 || reflection_Enum_attributes_pick(B, t) 248 || reflection_Enum_documentation_pick(B, t) 249 || reflection_Enum_is_union_pick(B, t)) { 250 return 0; 251 } 252 __flatbuffers_memoize_end(B, t, reflection_Enum_end(B)); 253 } 254 255 __flatbuffers_build_string_field(0, flatbuffers_, reflection_Field_name, reflection_Field) 256 __flatbuffers_build_table_field(1, flatbuffers_, reflection_Field_type, reflection_Type, reflection_Field) 257 __flatbuffers_build_scalar_field(2, flatbuffers_, reflection_Field_id, flatbuffers_uint16, uint16_t, 2, 2, UINT16_C(0), reflection_Field) 258 __flatbuffers_build_scalar_field(3, flatbuffers_, reflection_Field_offset, flatbuffers_uint16, uint16_t, 2, 2, UINT16_C(0), reflection_Field) 259 __flatbuffers_build_scalar_field(4, flatbuffers_, reflection_Field_default_integer, flatbuffers_int64, int64_t, 8, 8, INT64_C(0), reflection_Field) 260 __flatbuffers_build_scalar_field(5, flatbuffers_, reflection_Field_default_real, flatbuffers_double, double, 8, 8, 0.0000000000000000, reflection_Field) 261 __flatbuffers_build_scalar_field(6, flatbuffers_, reflection_Field_deprecated, flatbuffers_bool, flatbuffers_bool_t, 1, 1, UINT8_C(0), reflection_Field) 262 __flatbuffers_build_scalar_field(7, flatbuffers_, reflection_Field_required, flatbuffers_bool, flatbuffers_bool_t, 1, 1, UINT8_C(0), reflection_Field) 263 __flatbuffers_build_scalar_field(8, flatbuffers_, reflection_Field_key, flatbuffers_bool, flatbuffers_bool_t, 1, 1, UINT8_C(0), reflection_Field) 264 /* vector has keyed elements */ 265 __flatbuffers_build_table_vector_field(9, flatbuffers_, reflection_Field_attributes, reflection_KeyValue, reflection_Field) 266 __flatbuffers_build_string_vector_field(10, flatbuffers_, reflection_Field_documentation, reflection_Field) 267 __flatbuffers_build_scalar_field(11, flatbuffers_, reflection_Field_optional, flatbuffers_bool, flatbuffers_bool_t, 1, 1, UINT8_C(0), reflection_Field) 268 269 static inline reflection_Field_ref_t reflection_Field_create(flatbuffers_builder_t *B __reflection_Field_formal_args) 270 { 271 if (reflection_Field_start(B) 272 || reflection_Field_default_integer_add(B, v4) 273 || reflection_Field_default_real_add(B, v5) 274 || reflection_Field_name_add(B, v0) 275 || reflection_Field_type_add(B, v1) 276 || reflection_Field_attributes_add(B, v9) 277 || reflection_Field_documentation_add(B, v10) 278 || reflection_Field_id_add(B, v2) 279 || reflection_Field_offset_add(B, v3) 280 || reflection_Field_deprecated_add(B, v6) 281 || reflection_Field_required_add(B, v7) 282 || reflection_Field_key_add(B, v8) 283 || reflection_Field_optional_add(B, v11)) { 284 return 0; 285 } 286 return reflection_Field_end(B); 287 } 288 289 static reflection_Field_ref_t reflection_Field_clone(flatbuffers_builder_t *B, reflection_Field_table_t t) 290 { 291 __flatbuffers_memoize_begin(B, t); 292 if (reflection_Field_start(B) 293 || reflection_Field_default_integer_pick(B, t) 294 || reflection_Field_default_real_pick(B, t) 295 || reflection_Field_name_pick(B, t) 296 || reflection_Field_type_pick(B, t) 297 || reflection_Field_attributes_pick(B, t) 298 || reflection_Field_documentation_pick(B, t) 299 || reflection_Field_id_pick(B, t) 300 || reflection_Field_offset_pick(B, t) 301 || reflection_Field_deprecated_pick(B, t) 302 || reflection_Field_required_pick(B, t) 303 || reflection_Field_key_pick(B, t) 304 || reflection_Field_optional_pick(B, t)) { 305 return 0; 306 } 307 __flatbuffers_memoize_end(B, t, reflection_Field_end(B)); 308 } 309 310 __flatbuffers_build_string_field(0, flatbuffers_, reflection_Object_name, reflection_Object) 311 /* vector has keyed elements */ 312 __flatbuffers_build_table_vector_field(1, flatbuffers_, reflection_Object_fields, reflection_Field, reflection_Object) 313 __flatbuffers_build_scalar_field(2, flatbuffers_, reflection_Object_is_struct, flatbuffers_bool, flatbuffers_bool_t, 1, 1, UINT8_C(0), reflection_Object) 314 __flatbuffers_build_scalar_field(3, flatbuffers_, reflection_Object_minalign, flatbuffers_int32, int32_t, 4, 4, INT32_C(0), reflection_Object) 315 __flatbuffers_build_scalar_field(4, flatbuffers_, reflection_Object_bytesize, flatbuffers_int32, int32_t, 4, 4, INT32_C(0), reflection_Object) 316 /* vector has keyed elements */ 317 __flatbuffers_build_table_vector_field(5, flatbuffers_, reflection_Object_attributes, reflection_KeyValue, reflection_Object) 318 __flatbuffers_build_string_vector_field(6, flatbuffers_, reflection_Object_documentation, reflection_Object) 319 320 static inline reflection_Object_ref_t reflection_Object_create(flatbuffers_builder_t *B __reflection_Object_formal_args) 321 { 322 if (reflection_Object_start(B) 323 || reflection_Object_name_add(B, v0) 324 || reflection_Object_fields_add(B, v1) 325 || reflection_Object_minalign_add(B, v3) 326 || reflection_Object_bytesize_add(B, v4) 327 || reflection_Object_attributes_add(B, v5) 328 || reflection_Object_documentation_add(B, v6) 329 || reflection_Object_is_struct_add(B, v2)) { 330 return 0; 331 } 332 return reflection_Object_end(B); 333 } 334 335 static reflection_Object_ref_t reflection_Object_clone(flatbuffers_builder_t *B, reflection_Object_table_t t) 336 { 337 __flatbuffers_memoize_begin(B, t); 338 if (reflection_Object_start(B) 339 || reflection_Object_name_pick(B, t) 340 || reflection_Object_fields_pick(B, t) 341 || reflection_Object_minalign_pick(B, t) 342 || reflection_Object_bytesize_pick(B, t) 343 || reflection_Object_attributes_pick(B, t) 344 || reflection_Object_documentation_pick(B, t) 345 || reflection_Object_is_struct_pick(B, t)) { 346 return 0; 347 } 348 __flatbuffers_memoize_end(B, t, reflection_Object_end(B)); 349 } 350 351 __flatbuffers_build_string_field(0, flatbuffers_, reflection_RPCCall_name, reflection_RPCCall) 352 __flatbuffers_build_table_field(1, flatbuffers_, reflection_RPCCall_request, reflection_Object, reflection_RPCCall) 353 __flatbuffers_build_table_field(2, flatbuffers_, reflection_RPCCall_response, reflection_Object, reflection_RPCCall) 354 /* vector has keyed elements */ 355 __flatbuffers_build_table_vector_field(3, flatbuffers_, reflection_RPCCall_attributes, reflection_KeyValue, reflection_RPCCall) 356 __flatbuffers_build_string_vector_field(4, flatbuffers_, reflection_RPCCall_documentation, reflection_RPCCall) 357 358 static inline reflection_RPCCall_ref_t reflection_RPCCall_create(flatbuffers_builder_t *B __reflection_RPCCall_formal_args) 359 { 360 if (reflection_RPCCall_start(B) 361 || reflection_RPCCall_name_add(B, v0) 362 || reflection_RPCCall_request_add(B, v1) 363 || reflection_RPCCall_response_add(B, v2) 364 || reflection_RPCCall_attributes_add(B, v3) 365 || reflection_RPCCall_documentation_add(B, v4)) { 366 return 0; 367 } 368 return reflection_RPCCall_end(B); 369 } 370 371 static reflection_RPCCall_ref_t reflection_RPCCall_clone(flatbuffers_builder_t *B, reflection_RPCCall_table_t t) 372 { 373 __flatbuffers_memoize_begin(B, t); 374 if (reflection_RPCCall_start(B) 375 || reflection_RPCCall_name_pick(B, t) 376 || reflection_RPCCall_request_pick(B, t) 377 || reflection_RPCCall_response_pick(B, t) 378 || reflection_RPCCall_attributes_pick(B, t) 379 || reflection_RPCCall_documentation_pick(B, t)) { 380 return 0; 381 } 382 __flatbuffers_memoize_end(B, t, reflection_RPCCall_end(B)); 383 } 384 385 __flatbuffers_build_string_field(0, flatbuffers_, reflection_Service_name, reflection_Service) 386 /* vector has keyed elements */ 387 __flatbuffers_build_table_vector_field(1, flatbuffers_, reflection_Service_calls, reflection_RPCCall, reflection_Service) 388 /* vector has keyed elements */ 389 __flatbuffers_build_table_vector_field(2, flatbuffers_, reflection_Service_attributes, reflection_KeyValue, reflection_Service) 390 __flatbuffers_build_string_vector_field(3, flatbuffers_, reflection_Service_documentation, reflection_Service) 391 392 static inline reflection_Service_ref_t reflection_Service_create(flatbuffers_builder_t *B __reflection_Service_formal_args) 393 { 394 if (reflection_Service_start(B) 395 || reflection_Service_name_add(B, v0) 396 || reflection_Service_calls_add(B, v1) 397 || reflection_Service_attributes_add(B, v2) 398 || reflection_Service_documentation_add(B, v3)) { 399 return 0; 400 } 401 return reflection_Service_end(B); 402 } 403 404 static reflection_Service_ref_t reflection_Service_clone(flatbuffers_builder_t *B, reflection_Service_table_t t) 405 { 406 __flatbuffers_memoize_begin(B, t); 407 if (reflection_Service_start(B) 408 || reflection_Service_name_pick(B, t) 409 || reflection_Service_calls_pick(B, t) 410 || reflection_Service_attributes_pick(B, t) 411 || reflection_Service_documentation_pick(B, t)) { 412 return 0; 413 } 414 __flatbuffers_memoize_end(B, t, reflection_Service_end(B)); 415 } 416 417 /* vector has keyed elements */ 418 __flatbuffers_build_table_vector_field(0, flatbuffers_, reflection_Schema_objects, reflection_Object, reflection_Schema) 419 /* vector has keyed elements */ 420 __flatbuffers_build_table_vector_field(1, flatbuffers_, reflection_Schema_enums, reflection_Enum, reflection_Schema) 421 __flatbuffers_build_string_field(2, flatbuffers_, reflection_Schema_file_ident, reflection_Schema) 422 __flatbuffers_build_string_field(3, flatbuffers_, reflection_Schema_file_ext, reflection_Schema) 423 __flatbuffers_build_table_field(4, flatbuffers_, reflection_Schema_root_table, reflection_Object, reflection_Schema) 424 /* vector has keyed elements */ 425 __flatbuffers_build_table_vector_field(5, flatbuffers_, reflection_Schema_services, reflection_Service, reflection_Schema) 426 427 static inline reflection_Schema_ref_t reflection_Schema_create(flatbuffers_builder_t *B __reflection_Schema_formal_args) 428 { 429 if (reflection_Schema_start(B) 430 || reflection_Schema_objects_add(B, v0) 431 || reflection_Schema_enums_add(B, v1) 432 || reflection_Schema_file_ident_add(B, v2) 433 || reflection_Schema_file_ext_add(B, v3) 434 || reflection_Schema_root_table_add(B, v4) 435 || reflection_Schema_services_add(B, v5)) { 436 return 0; 437 } 438 return reflection_Schema_end(B); 439 } 440 441 static reflection_Schema_ref_t reflection_Schema_clone(flatbuffers_builder_t *B, reflection_Schema_table_t t) 442 { 443 __flatbuffers_memoize_begin(B, t); 444 if (reflection_Schema_start(B) 445 || reflection_Schema_objects_pick(B, t) 446 || reflection_Schema_enums_pick(B, t) 447 || reflection_Schema_file_ident_pick(B, t) 448 || reflection_Schema_file_ext_pick(B, t) 449 || reflection_Schema_root_table_pick(B, t) 450 || reflection_Schema_services_pick(B, t)) { 451 return 0; 452 } 453 __flatbuffers_memoize_end(B, t, reflection_Schema_end(B)); 454 } 455 456 #include "flatcc/flatcc_epilogue.h" 457 #endif /* REFLECTION_BUILDER_H */