mirror of
https://github.com/esphome/esphome.git
synced 2025-11-19 00:05:43 +00:00
[api] Optimize frame helpers to eliminate double-move overhead (#11092)
This commit is contained in:
@@ -28,7 +28,7 @@ class APINoiseFrameHelper final : public APIFrameHelper {
|
||||
|
||||
protected:
|
||||
APIError state_action_();
|
||||
APIError try_read_frame_(std::vector<uint8_t> *frame);
|
||||
APIError try_read_frame_();
|
||||
APIError write_frame_(const uint8_t *data, uint16_t len);
|
||||
APIError init_handshake_();
|
||||
APIError check_handshake_finished_();
|
||||
|
||||
Reference in New Issue
Block a user