![]() |
WPILibC++ 2025.3.2
|
A DirectUnpackCallback backed by a SmallVector<T, N>. More...
#include <wpi/protobuf/ProtobufCallbacks.h>
Public Member Functions | |
| UnpackCallback () | |
| Constructs an UnpackCallback. | |
| std::span< T > | Items () noexcept |
| Gets a span pointing to the storage buffer. | |
| std::span< const T > | Items () const noexcept |
| Gets a const span pointing to the storage buffer. | |
| wpi::SmallVector< T, N > & | Vec () noexcept |
| Gets a reference to the backing small vector. | |
Public Member Functions inherited from wpi::DirectUnpackCallback< T, wpi::SmallVector< T, 1 >, 1 > | |
| DirectUnpackCallback (wpi::SmallVector< T, 1 > &storage) | |
| Constructs a callback from a vector like type. | |
| DirectUnpackCallback (const DirectUnpackCallback &)=delete | |
| DirectUnpackCallback (DirectUnpackCallback &&)=delete | |
| DirectUnpackCallback & | operator= (const DirectUnpackCallback &)=delete |
| DirectUnpackCallback & | operator= (DirectUnpackCallback &&)=delete |
| void | SetLimits (DecodeLimits limit) noexcept |
| Set the limits on what happens if more elements exist in the buffer then expected. | |
| pb_callback_t | Callback () const |
| Gets the nanopb callback pointing to this object. | |
A DirectUnpackCallback backed by a SmallVector<T, N>.
By default, any elements in the packed buffer past N will be ignored, but decoding will still succeed
| T | object type |
| N | small vector small size/number of expected elements |
|
inline |
Constructs an UnpackCallback.
|
inlinenoexcept |
Gets a const span pointing to the storage buffer.
|
inlinenoexcept |
Gets a span pointing to the storage buffer.
|
inlinenoexcept |
Gets a reference to the backing small vector.