ESPHome 2026.12.0-dev
Loading...
Searching...
No Matches
progmem.h File Reference

Go to the source code of this file.

Data Structures

struct  esphome::FixedString< N >
 Helper for C++20 string literal template arguments. More...
 
struct  esphome::ProgmemStringTable< Strs >
 Compile-time string table that packs strings into a single blob with offset lookup. More...
 

Namespaces

namespace  esphome
 
namespace  esphome::progmem_detail
 

Typedefs

using ProgmemStr = const __FlashStringHelper *
 

Functions

std::string esphome::progmem_string (ProgmemStr str)
 Copies a string stored with ESPHOME_F into a std::string.
 
const char * esphome::progmem_skip_strings (const char *blob, uint8_t idx)
 Skip idx strings in a packed NUL-separated blob that may live in flash.
 
template<typename D = size_t, typename T >
constexpr D esphome::progmem_detail::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.
 
template<typename Table >
int16_t esphome::progmem_string_table_find (const char *value, size_t len)
 The index of the string value (len bytes, in RAM) in a PROGMEM_STRING_TABLE, or -1 when it is not one of its strings.
 

Typedef Documentation

◆ ProgmemStr

typedef const char * ProgmemStr = const __FlashStringHelper *

Definition at line 33 of file progmem.h.