damus

nostr ios client
git clone git://jb55.com/damus
Log | Files | Refs | README | LICENSE

meta_builder.h (2942B)


      1 #ifndef META_BUILDER_H
      2 #define META_BUILDER_H
      3 
      4 /* Generated by flatcc 0.6.1 FlatBuffers schema compiler for C by dvide.com */
      5 
      6 #ifndef META_READER_H
      7 #include "meta_reader.h"
      8 #endif
      9 #ifndef FLATBUFFERS_COMMON_BUILDER_H
     10 #include "flatbuffers_common_builder.h"
     11 #endif
     12 #include "flatcc_prologue.h"
     13 #ifndef flatbuffers_identifier
     14 #define flatbuffers_identifier 0
     15 #endif
     16 #ifndef flatbuffers_extension
     17 #define flatbuffers_extension "bin"
     18 #endif
     19 
     20 static const flatbuffers_voffset_t __NdbEventMeta_required[] = { 0 };
     21 typedef flatbuffers_ref_t NdbEventMeta_ref_t;
     22 static NdbEventMeta_ref_t NdbEventMeta_clone(flatbuffers_builder_t *B, NdbEventMeta_table_t t);
     23 __flatbuffers_build_table(flatbuffers_, NdbEventMeta, 6)
     24 
     25 #define __NdbEventMeta_formal_args ,\
     26   int32_t v0, int32_t v1, int32_t v2, int32_t v3, int32_t v4, int64_t v5
     27 #define __NdbEventMeta_call_args ,\
     28   v0, v1, v2, v3, v4, v5
     29 static inline NdbEventMeta_ref_t NdbEventMeta_create(flatbuffers_builder_t *B __NdbEventMeta_formal_args);
     30 __flatbuffers_build_table_prolog(flatbuffers_, NdbEventMeta, NdbEventMeta_file_identifier, NdbEventMeta_type_identifier)
     31 
     32 __flatbuffers_build_scalar_field(0, flatbuffers_, NdbEventMeta_received_at, flatbuffers_int32, int32_t, 4, 4, INT32_C(0), NdbEventMeta)
     33 __flatbuffers_build_scalar_field(1, flatbuffers_, NdbEventMeta_reactions, flatbuffers_int32, int32_t, 4, 4, INT32_C(0), NdbEventMeta)
     34 __flatbuffers_build_scalar_field(2, flatbuffers_, NdbEventMeta_quotes, flatbuffers_int32, int32_t, 4, 4, INT32_C(0), NdbEventMeta)
     35 __flatbuffers_build_scalar_field(3, flatbuffers_, NdbEventMeta_reposts, flatbuffers_int32, int32_t, 4, 4, INT32_C(0), NdbEventMeta)
     36 __flatbuffers_build_scalar_field(4, flatbuffers_, NdbEventMeta_zaps, flatbuffers_int32, int32_t, 4, 4, INT32_C(0), NdbEventMeta)
     37 __flatbuffers_build_scalar_field(5, flatbuffers_, NdbEventMeta_zap_total, flatbuffers_int64, int64_t, 8, 8, INT64_C(0), NdbEventMeta)
     38 
     39 static inline NdbEventMeta_ref_t NdbEventMeta_create(flatbuffers_builder_t *B __NdbEventMeta_formal_args)
     40 {
     41     if (NdbEventMeta_start(B)
     42         || NdbEventMeta_zap_total_add(B, v5)
     43         || NdbEventMeta_received_at_add(B, v0)
     44         || NdbEventMeta_reactions_add(B, v1)
     45         || NdbEventMeta_quotes_add(B, v2)
     46         || NdbEventMeta_reposts_add(B, v3)
     47         || NdbEventMeta_zaps_add(B, v4)) {
     48         return 0;
     49     }
     50     return NdbEventMeta_end(B);
     51 }
     52 
     53 static NdbEventMeta_ref_t NdbEventMeta_clone(flatbuffers_builder_t *B, NdbEventMeta_table_t t)
     54 {
     55     __flatbuffers_memoize_begin(B, t);
     56     if (NdbEventMeta_start(B)
     57         || NdbEventMeta_zap_total_pick(B, t)
     58         || NdbEventMeta_received_at_pick(B, t)
     59         || NdbEventMeta_reactions_pick(B, t)
     60         || NdbEventMeta_quotes_pick(B, t)
     61         || NdbEventMeta_reposts_pick(B, t)
     62         || NdbEventMeta_zaps_pick(B, t)) {
     63         return 0;
     64     }
     65     __flatbuffers_memoize_end(B, t, NdbEventMeta_end(B));
     66 }
     67 
     68 #include "flatcc_epilogue.h"
     69 #endif /* META_BUILDER_H */