WPILibC++ 2027.0.0-alpha-4
Loading...
Searching...
No Matches
ProtobufCallbacks.hpp File Reference
#include <span>
#include <utility>
#include <vector>
#include <fmt/format.h>
#include "pb.h"
#include "wpi/util/SmallVector.hpp"
#include "wpi/util/array.hpp"
#include "wpi/util/protobuf/Protobuf.hpp"

Go to the source code of this file.

Classes

class  wpi::util::DirectUnpackCallback< T, U, N >
 A callback method that will directly unpack elements into the specified vector like data structure. More...
class  wpi::util::UnpackCallback< T, N >
 A DirectUnpackCallback backed by a SmallVector<T, N>. More...
class  wpi::util::StdVectorUnpackCallback< T, N >
 A DirectUnpackCallback backed by a std::vector. More...
struct  wpi::util::WpiArrayEmplaceWrapper< T, N >
 A wrapper around a wpi::util::array that lets us treat it as a limited sized vector. More...
struct  wpi::util::WpiArrayUnpackCallback< T, N >
 A DirectUnpackCallback backed by a wpi::util::array<T, N>. More...
class  wpi::util::PackCallback< T >
 A callback method that will pack elements when called. More...

Namespaces

namespace  wpi
namespace  wpi::util
namespace  wpi::util::detail
 These are wrappers over isa* function that allow them to be used in generic algorithms such as wpi::util:all_of, wpi::util::none_of, etc.

Concepts

concept  wpi::util::StringLike
concept  wpi::util::ConstVectorLike
concept  wpi::util::MutableVectorLike
concept  wpi::util::PackBytes
concept  wpi::util::UnpackBytes
concept  wpi::util::ProtoEnumeration
concept  wpi::util::ProtoPackable
concept  wpi::util::ProtoCallbackPackable
concept  wpi::util::ProtoCallbackUnpackable
concept  wpi::util::detail::Validatable

Enumerations

enum class  wpi::util::DecodeLimits { wpi::util::Ignore , wpi::util::Add , wpi::util::Fail }
 The behavior to use when more elements are in the message then expected when decoding. More...

Functions

template<Validatable T>
constexpr bool wpi::util::detail::ValidateType (pb_type_t type)