WPILibC++ 2025.1.1
|
A callback method that will directly unpack elements into the specified vector like data structure. More...
#include <wpi/protobuf/ProtobufCallbacks.h>
Public Member Functions | |
DirectUnpackCallback (U &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 callback method that will directly unpack elements into the specified vector like data structure.
The size passed is the expected number of elements.
By default, any elements in the packed buffer past N will still be added to the vector.
T | object type |
U | vector type to pack into |
N | number of elements |
|
inlineexplicit |
Constructs a callback from a vector like type.
storage | the vector to store into |
|
delete |
|
delete |
|
inline |
Gets the nanopb callback pointing to this object.
|
delete |
|
delete |
|
inlinenoexcept |
Set the limits on what happens if more elements exist in the buffer then expected.
limit | the limit to set |