WPILibC++ 2025.1.1
|
A DirectUnpackCallback backed by a wpi::array<T, N>. More...
#include <wpi/protobuf/ProtobufCallbacks.h>
Public Member Functions | |
WpiArrayUnpackCallback () | |
Constructs a WpiArrayUnpackCallback. | |
bool | IsFull () const noexcept |
Returns if the buffer is completely filled up. | |
size_t | Size () const noexcept |
Returns the number of elements in the buffer. | |
wpi::array< T, N > & | Array () noexcept |
Returns a reference to the backing array. | |
Public Member Functions inherited from wpi::DirectUnpackCallback< T, WpiArrayEmplaceWrapper< T, N >, N > | |
DirectUnpackCallback (WpiArrayEmplaceWrapper< T, N > &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 wpi::array<T, N>.
Any elements in the packed buffer past N will be cause decoding to fail.
T | object type |
N | small vector small size/number of expected elements |
|
inline |
Constructs a WpiArrayUnpackCallback.
|
inlinenoexcept |
Returns a reference to the backing array.
|
inlinenoexcept |
Returns if the buffer is completely filled up.
|
inlinenoexcept |
Returns the number of elements in the buffer.