ESPHome 2026.3.0
Loading...
Searching...
No Matches
esphome::api::ProtoVarIntResult Struct Reference

Result of parsing a varint: value + number of bytes consumed. More...

#include <proto.h>

Public Member Functions

constexpr bool has_value () const
 

Data Fields

proto_varint_value_t value
 
uint32_t consumed
 

Detailed Description

Result of parsing a varint: value + number of bytes consumed.

consumed == PROTO_VARINT_PARSE_FAILED indicates parse failure (not enough data or invalid).

Definition at line 114 of file proto.h.

Member Function Documentation

◆ has_value()

bool esphome::api::ProtoVarIntResult::has_value ( ) const
inlineconstexpr

Definition at line 118 of file proto.h.

Field Documentation

◆ consumed

uint32_t esphome::api::ProtoVarIntResult::consumed

Definition at line 116 of file proto.h.

◆ value

proto_varint_value_t esphome::api::ProtoVarIntResult::value

Definition at line 115 of file proto.h.


The documentation for this struct was generated from the following file: