|
ESPHome 2026.11.0-dev
|
One decoded field: the payload pointer and a scalar holding the varint or fixed32 value, or the length of a length-delimited field. More...
#include <proto.h>
Public Member Functions | |
| ProtoFieldValue (const uint8_t *data, proto_varint_value_t scalar) | |
| proto_varint_value_t | as_varint () const |
| bool | as_bool () const |
| const uint8_t * | data () const |
| size_t | size () const |
| std::string | as_string () const |
| template<typename T > | |
| void | decode_to_message (T &msg) const |
| Decode the length-delimited payload into a message instance. | |
| uint32_t | as_fixed32 () const |
| int32_t | as_sfixed32 () const |
| float | as_float () const |
One decoded field: the payload pointer and a scalar holding the varint or fixed32 value, or the length of a length-delimited field.
The wire type in the tag says which applies; accessors do not check.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |