WPILibC++ 2025.1.1
|
A callback method that will pack elements when called. More...
#include <wpi/protobuf/ProtobufCallbacks.h>
Public Member Functions | |
PackCallback (std::span< const T > buffer) | |
Constructs a pack callback from a span of elements. | |
PackCallback (const T *element) | |
Constructs a pack callback from a pointer to a single element. | |
PackCallback (const PackCallback &)=delete | |
PackCallback (PackCallback &&)=delete | |
PackCallback & | operator= (const PackCallback &)=delete |
PackCallback & | operator= (PackCallback &&)=delete |
pb_callback_t | Callback () const |
Gets the nanopb callback pointing to this object. | |
std::span< const T > | Bufs () const |
Gets a span pointing to the items. | |
A callback method that will pack elements when called.
T | object type |
|
inlineexplicit |
Constructs a pack callback from a span of elements.
The elements in the buffer MUST stay alive throughout the entire encode call.
|
inlineexplicit |
Constructs a pack callback from a pointer to a single element.
This element MUST stay alive throughout the entire encode call. Do not pass a temporary here (This is why its a pointer and not a reference)
|
delete |
|
delete |
|
inline |
Gets a span pointing to the items.
|
inline |
Gets the nanopb callback pointing to this object.
|
delete |
|
delete |