LCOV - code coverage report
Current view: top level - frmts/icechunk/generated - common_generated.h (source / functions) Hit Total Coverage
Test: gdal_filtered.info Lines: 15 15 100.0 %
Date: 2026-06-19 21:24:00 Functions: 5 5 100.0 %

          Line data    Source code
       1             : // automatically generated by the FlatBuffers compiler, do not modify
       2             : 
       3             : 
       4             : #ifndef FLATBUFFERS_GENERATED_COMMON_GENERATED_H_
       5             : #define FLATBUFFERS_GENERATED_COMMON_GENERATED_H_
       6             : 
       7             : #include "flatbuffers/flatbuffers.h"
       8             : 
       9             : // Ensure the included flatbuffers.h is the same version as when this file was
      10             : // generated, otherwise it may not be compatible.
      11             : static_assert(FLATBUFFERS_VERSION_MAJOR == 2 &&
      12             :               FLATBUFFERS_VERSION_MINOR == 0 &&
      13             :               FLATBUFFERS_VERSION_REVISION == 8,
      14             :              "Non-compatible flatbuffers version included");
      15             : 
      16             : namespace generated {
      17             : 
      18             : struct ObjectId12;
      19             : 
      20             : struct ObjectId8;
      21             : 
      22             : struct MetadataItem;
      23             : struct MetadataItemBuilder;
      24             : 
      25             : FLATBUFFERS_MANUALLY_ALIGNED_STRUCT(1) ObjectId12 FLATBUFFERS_FINAL_CLASS {
      26             :  private:
      27             :   uint8_t bytes_[12];
      28             : 
      29             :  public:
      30             :   struct Traits;
      31             :   ObjectId12()
      32             :       : bytes_() {
      33             :   }
      34             :   ObjectId12(flatbuffers::span<const uint8_t, 12> _bytes) {
      35             :     flatbuffers::CastToArray(bytes_).CopyFromSpan(_bytes);
      36             :   }
      37       25939 :   const flatbuffers::Array<uint8_t, 12> *bytes() const {
      38       25939 :     return &flatbuffers::CastToArray(bytes_);
      39             :   }
      40             : };
      41             : FLATBUFFERS_STRUCT_END(ObjectId12, 12);
      42             : 
      43             : struct ObjectId12::Traits {
      44             :   using type = ObjectId12;
      45             : };
      46             : 
      47             : FLATBUFFERS_MANUALLY_ALIGNED_STRUCT(1) ObjectId8 FLATBUFFERS_FINAL_CLASS {
      48             :  private:
      49             :   uint8_t bytes_[8];
      50             : 
      51             :  public:
      52             :   struct Traits;
      53             :   ObjectId8()
      54             :       : bytes_() {
      55             :   }
      56             :   ObjectId8(flatbuffers::span<const uint8_t, 8> _bytes) {
      57             :     flatbuffers::CastToArray(bytes_).CopyFromSpan(_bytes);
      58             :   }
      59       10906 :   const flatbuffers::Array<uint8_t, 8> *bytes() const {
      60       10906 :     return &flatbuffers::CastToArray(bytes_);
      61             :   }
      62             : };
      63             : FLATBUFFERS_STRUCT_END(ObjectId8, 8);
      64             : 
      65             : struct ObjectId8::Traits {
      66             :   using type = ObjectId8;
      67             : };
      68             : 
      69             : struct MetadataItem FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table {
      70             :   typedef MetadataItemBuilder Builder;
      71             :   struct Traits;
      72             :   enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
      73             :     VT_NAME = 4,
      74             :     VT_VALUE = 6
      75             :   };
      76       11877 :   const flatbuffers::String *name() const {
      77       11877 :     return GetPointer<const flatbuffers::String *>(VT_NAME);
      78             :   }
      79        7920 :   const flatbuffers::Vector<uint8_t> *value() const {
      80        7920 :     return GetPointer<const flatbuffers::Vector<uint8_t> *>(VT_VALUE);
      81             :   }
      82        3961 :   bool Verify(flatbuffers::Verifier &verifier) const {
      83        3961 :     return VerifyTableStart(verifier) &&
      84        3961 :            VerifyOffsetRequired(verifier, VT_NAME) &&
      85        3961 :            verifier.VerifyString(name()) &&
      86        3961 :            VerifyOffsetRequired(verifier, VT_VALUE) &&
      87       11883 :            verifier.VerifyVector(value()) &&
      88        7922 :            verifier.EndTable();
      89             :   }
      90             : };
      91             : 
      92             : struct MetadataItemBuilder {
      93             :   typedef MetadataItem Table;
      94             :   flatbuffers::FlatBufferBuilder &fbb_;
      95             :   flatbuffers::uoffset_t start_;
      96             :   void add_name(flatbuffers::Offset<flatbuffers::String> name) {
      97             :     fbb_.AddOffset(MetadataItem::VT_NAME, name);
      98             :   }
      99             :   void add_value(flatbuffers::Offset<flatbuffers::Vector<uint8_t>> value) {
     100             :     fbb_.AddOffset(MetadataItem::VT_VALUE, value);
     101             :   }
     102             :   explicit MetadataItemBuilder(flatbuffers::FlatBufferBuilder &_fbb)
     103             :         : fbb_(_fbb) {
     104             :     start_ = fbb_.StartTable();
     105             :   }
     106             :   flatbuffers::Offset<MetadataItem> Finish() {
     107             :     const auto end = fbb_.EndTable(start_);
     108             :     auto o = flatbuffers::Offset<MetadataItem>(end);
     109             :     fbb_.Required(o, MetadataItem::VT_NAME);
     110             :     fbb_.Required(o, MetadataItem::VT_VALUE);
     111             :     return o;
     112             :   }
     113             : };
     114             : 
     115             : inline flatbuffers::Offset<MetadataItem> CreateMetadataItem(
     116             :     flatbuffers::FlatBufferBuilder &_fbb,
     117             :     flatbuffers::Offset<flatbuffers::String> name = 0,
     118             :     flatbuffers::Offset<flatbuffers::Vector<uint8_t>> value = 0) {
     119             :   MetadataItemBuilder builder_(_fbb);
     120             :   builder_.add_value(value);
     121             :   builder_.add_name(name);
     122             :   return builder_.Finish();
     123             : }
     124             : 
     125             : struct MetadataItem::Traits {
     126             :   using type = MetadataItem;
     127             :   static auto constexpr Create = CreateMetadataItem;
     128             : };
     129             : 
     130             : inline flatbuffers::Offset<MetadataItem> CreateMetadataItemDirect(
     131             :     flatbuffers::FlatBufferBuilder &_fbb,
     132             :     const char *name = nullptr,
     133             :     const std::vector<uint8_t> *value = nullptr) {
     134             :   auto name__ = name ? _fbb.CreateString(name) : 0;
     135             :   auto value__ = value ? _fbb.CreateVector<uint8_t>(*value) : 0;
     136             :   return generated::CreateMetadataItem(
     137             :       _fbb,
     138             :       name__,
     139             :       value__);
     140             : }
     141             : 
     142             : }  // namespace generated
     143             : 
     144             : #endif  // FLATBUFFERS_GENERATED_COMMON_GENERATED_H_

Generated by: LCOV version 1.14