ESPHome  2024.12.2
Public Member Functions | Protected Attributes
esphome::host::HostPreferenceBackend Class Reference

#include <preferences.h>

Inheritance diagram for esphome::host::HostPreferenceBackend:
esphome::ESPPreferenceBackend

Public Member Functions

 HostPreferenceBackend (uint32_t key)
 
bool save (const uint8_t *data, size_t len) override
 
bool load (uint8_t *data, size_t len) override
 

Protected Attributes

uint32_t key_ {}
 

Detailed Description

Definition at line 11 of file preferences.h.

Constructor & Destructor Documentation

◆ HostPreferenceBackend()

esphome::host::HostPreferenceBackend::HostPreferenceBackend ( uint32_t  key)
inlineexplicit

Definition at line 13 of file preferences.h.

Member Function Documentation

◆ load()

bool esphome::host::HostPreferenceBackend::load ( uint8_t *  data,
size_t  len 
)
overridevirtual

Implements esphome::ESPPreferenceBackend.

Definition at line 79 of file preferences.cpp.

◆ save()

bool esphome::host::HostPreferenceBackend::save ( const uint8_t *  data,
size_t  len 
)
overridevirtual

Implements esphome::ESPPreferenceBackend.

Definition at line 75 of file preferences.cpp.

Field Documentation

◆ key_

uint32_t esphome::host::HostPreferenceBackend::key_ {}
protected

Definition at line 19 of file preferences.h.


The documentation for this class was generated from the following files: