|
|
| DefinitionCache (Supla::Config *config, Sha256Provider *sha256Provider) |
| |
|
bool | save (uint32_t definitionId, uint16_t definitionVersion, const char *json, const uint8_t *expectedSha256) |
| |
|
bool | load (uint32_t definitionId, uint16_t definitionVersion, char *json, size_t jsonSize, CachedDefinitionInfo *info=nullptr) const |
| |
|
bool | contains (uint32_t definitionId, uint16_t definitionVersion) const |
| |
|
bool | erase (uint32_t definitionId, uint16_t definitionVersion) |
| |
|
bool | getInfo (uint8_t index, CachedDefinitionInfo *info) const |
| |
|
bool | getInfoAndRepair (uint8_t index, CachedDefinitionInfo *info) const |
| |
|
bool | beginStagedSave (uint32_t definitionId, uint16_t definitionVersion, uint16_t jsonSize, const uint8_t *sha256, DefinitionCacheHandle *handle) |
| |
|
bool | writeStagedChunk (DefinitionCacheHandle handle, uint16_t chunkIndex, const uint8_t *data, uint16_t size) |
| |
|
bool | loadStaged (DefinitionCacheHandle handle, uint32_t definitionId, uint16_t definitionVersion, char *json, size_t jsonSize, CachedDefinitionInfo *info=nullptr) const |
| |
|
bool | commitStaged (DefinitionCacheHandle handle, uint32_t definitionId, uint16_t definitionVersion, uint16_t jsonSize, const uint8_t *sha256) |
| |
|
bool | abortStaged (DefinitionCacheHandle handle) |
| |
The documentation for this class was generated from the following file: