ESPHome 2026.12.0-dev
Loading...
Searching...
No Matches
esphome::progmem_detail Namespace Reference

Functions

template<typename D = size_t, typename T >
constexpr D table_index (T value)
 Widen an enum or integer to a table index of type D; negative and out-of-range values become huge ones, which fall back.
 

Function Documentation

◆ table_index()

template<typename D = size_t, typename T >
D esphome::progmem_detail::table_index ( T value)
constexpr

Widen an enum or integer to a table index of type D; negative and out-of-range values become huge ones, which fall back.

D is a parameter only so the host tests can check the 64-to-32-bit clamp.

Definition at line 130 of file progmem.h.