|
ESPHome 2026.12.0-dev
|
Frame payload without heap; converts to and from std::vector<uint8_t> for older lambdas. More...
#include <canbus.h>
Public Member Functions | |
| CanPayload () | |
| template<typename InputIt > | |
| CanPayload (InputIt first, InputIt last) | |
| CanPayload (std::initializer_list< uint8_t > data) | |
| CanPayload (const std::vector< uint8_t > &data) | |
| operator std::vector< uint8_t > () const | |
| bool | truncated () const |
| Whether it was built from more bytes than one frame can carry. | |
Public Member Functions inherited from esphome::StaticVector< uint8_t, CAN_FRAME_DATA_LENGTH > | |
| constexpr | StaticVector () noexcept |
| StaticVector (InputIt first, InputIt last) | |
| StaticVector (std::initializer_list< uint8_t > init) | |
| StaticVector (const StaticVector< uint8_t, M > &other) | |
| void | push_back (const uint8_t &value) |
| void | clear () |
| void | resize (size_t n) |
| void | assign (InputIt first, InputIt last) |
| uint8_t & | emplace_next () |
| size_t | size () const |
| bool | empty () const |
| uint8_t * | data () |
| const uint8_t * | data () const |
| uint8_t & | operator[] (size_t i) |
| const uint8_t & | operator[] (size_t i) const |
| iterator | begin () |
| const_iterator | begin () const |
| iterator | end () |
| const_iterator | end () const |
| reverse_iterator | rbegin () |
| const_reverse_iterator | rbegin () const |
| reverse_iterator | rend () |
| const_reverse_iterator | rend () const |
| operator std::span< uint8_t > () | |
| operator std::span< const uint8_t > () const | |
Protected Attributes | |
| bool | truncated_ {false} |
Additional Inherited Members | |
Public Types inherited from esphome::StaticVector< uint8_t, CAN_FRAME_DATA_LENGTH > | |
| using | value_type |
| using | iterator |
| using | const_iterator |
| using | reverse_iterator |
| using | const_reverse_iterator |
Static Public Member Functions inherited from esphome::StaticVector< uint8_t, CAN_FRAME_DATA_LENGTH > | |
| static constexpr size_t | capacity () |
Frame payload without heap; converts to and from std::vector<uint8_t> for older lambdas.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
protected |