ESPHome  2024.3.1
Public Member Functions | Protected Attributes
esphome::api::ProtoLengthDelimited Class Reference

#include <proto.h>

Public Member Functions

 ProtoLengthDelimited (const uint8_t *value, size_t length)
 
std::string as_string () const
 
template<class C >
as_message () const
 

Protected Attributes

const uint8_t *const value_
 
const size_t length_
 

Detailed Description

Definition at line 95 of file proto.h.

Constructor & Destructor Documentation

◆ ProtoLengthDelimited()

esphome::api::ProtoLengthDelimited::ProtoLengthDelimited ( const uint8_t *  value,
size_t  length 
)
inlineexplicit

Definition at line 97 of file proto.h.

Member Function Documentation

◆ as_message()

template<class C >
C esphome::api::ProtoLengthDelimited::as_message ( ) const
inline

Definition at line 99 of file proto.h.

◆ as_string()

std::string esphome::api::ProtoLengthDelimited::as_string ( ) const
inline

Definition at line 98 of file proto.h.

Field Documentation

◆ length_

const size_t esphome::api::ProtoLengthDelimited::length_
protected

Definition at line 107 of file proto.h.

◆ value_

const uint8_t* const esphome::api::ProtoLengthDelimited::value_
protected

Definition at line 106 of file proto.h.


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