protozero
1.6.8
Minimalistic protocol buffer decoder and encoder in C++.
|
Go to the documentation of this file. 1 #ifndef PROTOZERO_PBF_MESSAGE_HPP
2 #define PROTOZERO_PBF_MESSAGE_HPP
22 #include <type_traits>
67 static_assert(std::is_same<
pbf_tag_type,
typename std::underlying_type<T>::type>::value,
68 "T must be enum with underlying type protozero::pbf_tag_type");
79 template <
typename... Args>
131 bool next(T next_tag) {
176 T
tag() const noexcept {
184 #endif // PROTOZERO_PBF_MESSAGE_HPP
pbf_wire_type
Definition: types.hpp:39
Definition: pbf_reader.hpp:61
All parts of the protozero header-only library are in this namespace.
Definition: byteswap.hpp:22
Contains the declaration of low-level types used in the pbf format.
bool next()
Definition: pbf_message.hpp:98
Definition: pbf_message.hpp:64
bool next()
Definition: pbf_reader.hpp:283
pbf_tag_type tag() const noexcept
Definition: pbf_reader.hpp:396
Contains the pbf_reader class.
uint32_t pbf_tag_type
Definition: types.hpp:32
T enum_type
The type of messages this class will read.
Definition: pbf_message.hpp:72
pbf_message(Args &&... args) noexcept
Definition: pbf_message.hpp:79
T tag() const noexcept
Definition: pbf_message.hpp:175