1
0
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:
J. Nick Koston
2025-10-07 16:16:44 -05:00
committed by GitHub
parent f10c361454
commit 6209d4b493
4 changed files with 54 additions and 78 deletions

View File

@@ -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_();