|
Lamp-Da 0.1
A compact lantern project
|
internal system file space. More...
Functions | |
| bool | doKeyExists (const uint32_t key) |
| Return true if the given key exists in the filesystem. | |
| bool | get_value (const uint32_t key, uint32_t &value) |
| Check and return a value stored in a filesystem. | |
| void | set_value (const uint32_t key, const uint32_t value) |
| Store a key/value in the filesystem. | |
| uint32_t | dropMatchingKeys (const uint32_t bitMatch, const uint32_t bitSelect=0xffffffff) |
| Drop all keys using the given bit prefix. | |
| void | write_to_file () |
| Write the system parameters to a file. | |
| bool | load_from_file () |
| Load system values from memory. | |
internal system file space.
| uint32_t lampda::physical::fileSystem::system::dropMatchingKeys | ( | const uint32_t | bitMatch, |
| const uint32_t | bitSelect = 0xffffffff |
||
| ) |
Drop all keys using the given bit prefix.
All keys such as bitMatch == (bitSelect & key) will be removed
| [in] | bitMatch | keys matching this pattern will be dropped |
| [in] | bitSelect | select which key bits to match with |
| bool lampda::physical::fileSystem::system::get_value | ( | const uint32_t | key, |
| uint32_t & | value | ||
| ) |
Check and return a value stored in a filesystem.
| [in] | key | The key to get the value from |
| [out] | value | The associated value, if the function returns true |
| bool lampda::physical::fileSystem::system::load_from_file | ( | ) |
Load system values from memory.
| void lampda::physical::fileSystem::system::set_value | ( | const uint32_t | key, |
| const uint32_t | value | ||
| ) |
Store a key/value in the filesystem.
| [in] | key | The key to store at |
| [in] | value | The associated value |
| void lampda::physical::fileSystem::system::write_to_file | ( | ) |
Write the system parameters to a file.