1 // Protocol Buffers - Google's data interchange format 2 // Copyright 2023 Google LLC. All rights reserved. 3 // 4 // Use of this source code is governed by a BSD-style 5 // license that can be found in the LICENSE file or at 6 // https://developers.google.com/open-source/licenses/bsd 7 8 #ifndef THIRD_PARTY_UPB_UPB_GENERATOR_MINITABLE_FASTTABLE_H_ 9 #define THIRD_PARTY_UPB_UPB_GENERATOR_MINITABLE_FASTTABLE_H_ 10 11 #include <cstdint> 12 #include <string> 13 #include <utility> 14 #include <vector> 15 16 #include "upb/reflection/def.hpp" 17 #include "upb_generator/file_layout.h" 18 19 namespace upb { 20 namespace generator { 21 22 typedef std::pair<std::string, uint64_t> TableEntry; 23 24 std::vector<TableEntry> FastDecodeTable(upb::MessageDefPtr message, 25 const DefPoolPair& pools); 26 27 } // namespace generator 28 } // namespace upb 29 30 #endif // THIRD_PARTY_UPB_UPB_GENERATOR_MINITABLE_FASTTABLE_H_ 31