![]() |
WPILibC++ 2027.0.0-alpha-5
|
A callback method that will pack elements when called. More...
#include <wpi/util/protobuf/ProtobufCallbacks.hpp>
Public Member Functions | |
| PackCallback (const R &range) | |
| Constructs a pack callback from a range of elements. | |
| 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. | |
A callback method that will pack elements when called.
| T | object type |
| R | range type (defaults to std::span<const T>) |
|
inlineexplicit |
Constructs a pack callback from a range of elements.
The range MUST stay alive throughout the entire encode call.
|
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 the nanopb callback pointing to this object.
|
delete |
|
delete |