ESPHome 2026.12.0-dev
Loading...
Searching...
No Matches
esphome::ByteView Class Reference

Read-only view of bytes in a buffer owned elsewhere, valid only until that buffer is written again. More...

#include <helpers.h>

Inheritance diagram for esphome::ByteView:

Public Member Functions

 operator std::vector< uint8_t > () const
 
bool operator== (const std::vector< uint8_t > &rhs) const
 

Detailed Description

Read-only view of bytes in a buffer owned elsewhere, valid only until that buffer is written again.

Converts to std::vector, so lambdas written for a std::vector argument keep working.

Definition at line 149 of file helpers.h.

Member Function Documentation

◆ operator std::vector< uint8_t >()

esphome::ByteView::operator std::vector< uint8_t > ( ) const
inline

Definition at line 152 of file helpers.h.

◆ operator==()

bool esphome::ByteView::operator== ( const std::vector< uint8_t > & rhs) const
inline

Definition at line 154 of file helpers.h.


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