Automated rollback of commit 694d7935747a5b4eac351b757ad8ff22599c8077.
[google-protobuf.git] / upb_generator / minitable / fasttable.h
blob9aadc46808b53d32166d49dcf00f7fc28f649e5e
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
8 #ifndef THIRD_PARTY_UPB_UPB_GENERATOR_MINITABLE_FASTTABLE_H_
9 #define THIRD_PARTY_UPB_UPB_GENERATOR_MINITABLE_FASTTABLE_H_
11 #include <cstdint>
12 #include <string>
13 #include <utility>
14 #include <vector>
16 #include "upb/reflection/def.hpp"
17 #include "upb_generator/file_layout.h"
19 namespace upb {
20 namespace generator {
22 typedef std::pair<std::string, uint64_t> TableEntry;
24 std::vector<TableEntry> FastDecodeTable(upb::MessageDefPtr message,
25 const DefPoolPair& pools);
27 } // namespace generator
28 } // namespace upb
30 #endif // THIRD_PARTY_UPB_UPB_GENERATOR_MINITABLE_FASTTABLE_H_