ESPHome 2026.11.0-dev
Loading...
Searching...
No Matches
proto.cpp File Reference

Go to the source code of this file.

Namespaces

namespace  esphome
 
namespace  esphome::api
 

Functions

 esphome::api::ESPHOME_LOG_TAG (TAG, "api.proto")
 
void esphome::api::proto_check_bounds_failed (const uint8_t *pos, size_t bytes, const uint8_t *end, const char *caller)
 
void esphome::api::proto_check_encode_end (const uint8_t *end, const uint8_t *expected)
 Aborts unless an encode body ended exactly where calculate_size() promised.
 
void esphome::api::proto_check_sub_message_size (uint32_t field_id, uint32_t expected, const uint8_t *len_pos, const uint8_t *end)
 Aborts unless a sized sub-message (length prefix at len_pos) ended where its calculated size said.