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

Go to the source code of this file.

Classes

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

Namespaces

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

Concepts

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

Enumerations

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

Functions

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