protozero
Minimalistic protocol buffer decoder and encoder in C++.
pbf_types.hpp
Go to the documentation of this file.
1 #ifndef PROTOZERO_PBF_TYPES_HPP
2 #define PROTOZERO_PBF_TYPES_HPP
3 
4 /*****************************************************************************
5 
6 protozero - Minimalistic protocol buffer decoder and encoder in C++.
7 
8 This file is from https://github.com/mapbox/protozero where you can find more
9 documentation.
10 
11 *****************************************************************************/
12 
19 #include <cstdint>
20 
21 namespace protozero {
22 
26  typedef uint32_t pbf_tag_type;
27 
33  enum class pbf_wire_type : uint32_t {
34  varint = 0, // int32/64, uint32/64, sint32/64, bool, enum
35  fixed64 = 1, // fixed64, sfixed64, double
36  length_delimited = 2, // string, bytes, embedded messages,
37  // packed repeated fields
38  fixed32 = 5, // fixed32, sfixed32, float
39  unknown = 99 // used for default setting in this library
40  };
41 
45  typedef uint32_t pbf_length_type;
46 
47 } // end namespace protozero
48 
49 #endif // PROTOZERO_PBF_TYPES_HPP
uint32_t pbf_length_type
Definition: pbf_types.hpp:45
pbf_wire_type
Definition: pbf_types.hpp:33
uint32_t pbf_tag_type
Definition: pbf_types.hpp:26
All parts of the protozero header-only library are in this namespace.
Definition: byteswap.hpp:24