Mode key store interface, see ContextTy::KeyProxy.
More...
|
| template<int16_t N> |
| static void LMBD_INLINE | setValue (const char(&key)[N], uint32_t value) |
| | Set value for named key and read in in out.
|
| |
| template<int16_t N> |
| static bool LMBD_INLINE | getValue (const char(&key)[N], uint32_t &out) |
| | Get value for named key and write it in out.
|
| |
|
static void | clear_stored () |
| | Force clear the stored parameters.
|
| |
|
static void LMBD_INLINE | migrateIfNeeded () |
| | Check for migration and erase all values if needed IT WILL ERASE THE WHOLE MEMORY, EVENT STATISTICS.
|
| |
Mode key store interface, see ContextTy::KeyProxy.
◆ getValue()
template<int16_t N>
| static bool LMBD_INLINE lampda::modes::store::getValue |
( |
const char(&) |
key[N], |
|
|
uint32_t & |
out |
|
) |
| |
|
inlinestatic |
Get value for named key and write it in out.
- Parameters
-
| [in] | key | Key string to be hashed as 31 bit integer |
| [out] | out | Value where result will be written if found |
- Returns
- Returns True if key is found and
out has been written
◆ setValue()
template<int16_t N>
| static void LMBD_INLINE lampda::modes::store::setValue |
( |
const char(&) |
key[N], |
|
|
uint32_t |
value |
|
) |
| |
|
inlinestatic |
Set value for named key and read in in out.
- Parameters
-
| [in] | key | Key string to be hashed as 31 bit integer |
| [in] | value | Value to be saved for key corresponding hash |