Go to the source code of this file.
|
| using | esphome::api::proto_varint_value_t = uint64_t |
| | Type used for decoded varint values - uint64_t when BLE needs 64-bit addresses, uint32_t otherwise.
|
| |
| using | esphome::api::ProtoEncodeFn = uint8_t *(*)(const void *, uint8_t *PROTO_ENCODE_DEBUG_PARAM) |
| | Generated encode body: writes the fields at pos, returns the cursor past them.
|
| |
|
| uint32_t | esphome::api::float_to_raw (float value) |
| |
| constexpr uint32_t | esphome::api::encode_zigzag32 (int32_t value) |
| |
| constexpr uint64_t | esphome::api::encode_zigzag64 (int64_t value) |
| |
| constexpr int32_t | esphome::api::decode_zigzag32 (uint32_t value) |
| |
| constexpr int64_t | esphome::api::decode_zigzag64 (uint64_t value) |
| |
| template<typename Word = size_t> |
| uint16_t | esphome::api::count_packed_varints (const uint8_t *data, size_t len) |
| | Count varints in a packed buffer: len minus bytes with the continuation bit, summed a word at a time.
|
| |
| void | esphome::api::encode_varint_to_buffer (uint32_t val, uint8_t *buffer) |
| | Encode a varint directly into a pre-allocated buffer.
|
| |
| constexpr uint32_t | esphome::api::proto_tag (uint32_t field_id, uint32_t wire_type) |
| | Case label for decode_field(): the wire tag of a field, so a field that arrives with another wire type matches no case.
|
| |
| 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.
|
| |
| template<typename T > |
| const char * | esphome::api::proto_enum_to_string (T value) |
| |