Representation of a VarInt - in ProtoBuf should be 64bit but we only use 32bit.
More...
#include <proto.h>
Representation of a VarInt - in ProtoBuf should be 64bit but we only use 32bit.
Definition at line 17 of file proto.h.
◆ ProtoVarInt() [1/2]
esphome::api::ProtoVarInt::ProtoVarInt |
( |
| ) |
|
|
inline |
◆ ProtoVarInt() [2/2]
esphome::api::ProtoVarInt::ProtoVarInt |
( |
uint64_t |
value | ) |
|
|
inlineexplicit |
◆ as_bool()
bool esphome::api::ProtoVarInt::as_bool |
( |
| ) |
const |
|
inline |
◆ as_enum()
template<typename T >
T esphome::api::ProtoVarInt::as_enum |
( |
| ) |
const |
|
inline |
◆ as_int32()
int32_t esphome::api::ProtoVarInt::as_int32 |
( |
| ) |
const |
|
inline |
◆ as_int64()
int64_t esphome::api::ProtoVarInt::as_int64 |
( |
| ) |
const |
|
inline |
◆ as_sint32()
int32_t esphome::api::ProtoVarInt::as_sint32 |
( |
| ) |
const |
|
inline |
◆ as_sint64()
int64_t esphome::api::ProtoVarInt::as_sint64 |
( |
| ) |
const |
|
inline |
◆ as_uint32()
uint32_t esphome::api::ProtoVarInt::as_uint32 |
( |
| ) |
const |
|
inline |
◆ as_uint64()
uint64_t esphome::api::ProtoVarInt::as_uint64 |
( |
| ) |
const |
|
inline |
◆ encode()
void esphome::api::ProtoVarInt::encode |
( |
std::vector< uint8_t > & |
out | ) |
|
|
inline |
◆ parse()
static optional<ProtoVarInt> esphome::api::ProtoVarInt::parse |
( |
const uint8_t * |
buffer, |
|
|
uint32_t |
len, |
|
|
uint32_t * |
consumed |
|
) |
| |
|
inlinestatic |
◆ value_
uint64_t esphome::api::ProtoVarInt::value_ |
|
protected |
The documentation for this class was generated from the following file:
- /opt/build/esphome/esphome/components/api/proto.h