|
std::optional< std::remove_cvref_t< T > > | Unpack (std::span< const uint8_t > data) |
| Unpacks from a byte array.
|
|
bool | UnpackInto (T *out, std::span< const uint8_t > data) |
| Unpacks from a byte array into an existing object.
|
|
bool | Pack (wpi::SmallVectorImpl< uint8_t > &out, const T &value) |
| Packs object into a SmallVector.
|
|
bool | Pack (std::vector< uint8_t > &out, const T &value) |
| Packs object into a std::vector.
|
|
std::string | GetTypeString () const |
| Gets the type string for the message.
|
|
void | ForEachProtobufDescriptor (function_ref< bool(std::string_view filename)> exists, function_ref< void(std::string_view filename, std::span< const uint8_t > descriptor)> fn) |
| Loops over all protobuf descriptors including nested/referenced descriptors.
|
|
template<ProtobufSerializable T>
class wpi::ProtobufMessage< T >
Ease of use wrapper to make nanopb streams more opaque to the user.
This class is stateless and thread safe.
- Template Parameters
-