mirror of
https://github.com/esphome/esphome.git
synced 2026-02-26 05:53:12 -07:00
api-make-unique-for-overwrite
Use C++20 std::make_unique_for_overwrite instead of std::make_unique for the send buffer allocation in buffer_data_from_iov_. This skips the unnecessary zero-initialization for POD types, since the buffer is immediately and completely filled via memcpy from the iov segments in the loop that follows.
Description
ESPHome is a system to control your ESP8266/ESP32 by simple yet powerful configuration files and control them remotely through Home Automation systems.
Readme
Multiple Licenses
495 MiB
Languages
C++
64.1%
Python
35.6%
C
0.2%
