1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-04 04:12:23 +01:00

Merge branch 'dev' into vornado-ir

This commit is contained in:
Jordan Zucker
2025-02-01 12:30:05 -08:00

View File

@@ -54,7 +54,7 @@ class RemoteReceiveData {
uint32_t get_index() const { return index_; } uint32_t get_index() const { return index_; }
int32_t operator[](uint32_t index) const { return this->data_[index]; } int32_t operator[](uint32_t index) const { return this->data_[index]; }
int32_t size() const { return this->data_.size(); } int32_t size() const { return this->data_.size(); }
bool is_valid(uint32_t offset) const { return this->index_ + offset < this->data_.size(); } bool is_valid(uint32_t offset = 0) const { return this->index_ + offset < this->data_.size(); }
int32_t peek(uint32_t offset = 0) const { return this->data_[this->index_ + offset]; } int32_t peek(uint32_t offset = 0) const { return this->data_[this->index_ + offset]; }
bool peek_mark(uint32_t length, uint32_t offset = 0) const; bool peek_mark(uint32_t length, uint32_t offset = 0) const;
bool peek_space(uint32_t length, uint32_t offset = 0) const; bool peek_space(uint32_t length, uint32_t offset = 0) const;