nl :: Tecer:: Plataforma:: PersistedStorage
Resumo
Typedefs | |
---|---|
Key | typedef |
Funções | |
---|---|
Read (Key aKey, uint32_t & aValue) | Lê o valor inteiro de uma chave de armazenamento persistente. |
Read (const char *aKey, uint32_t & aValue) | |
Write (Key aKey, uint32_t aValue) | Grave o valor inteiro de uma chave para armazenamento persistente. |
Write (const char *aKey, uint32_t aValue) |
Typedefs
Chave
WEAVE_CONFIG_PERSISTED_STORAGE_KEY_TYPE Key
Funções
Ler
WEAVE_ERROR Read( Key aKey, uint32_t & aValue )
Lê o valor inteiro de uma chave de armazenamento persistente.
A plataforma é responsável por validar aKey.
Detalhes | |||||
---|---|---|---|---|---|
Parâmetros |
| ||||
Devoluções | WEAVE_ERROR_INVALID_ARGUMENT se uma chave for NULL WEAVE_ERROR_INVALID_STRING_LENGTH se uma chave exceder WEAVE_CONFIG_PERSISTED_STORAGE_MAX_KEY_LENGTH WEAVE_ERROR_PERSISTED_STORAGE_VALUE não existe um WEAVE_VALUE_NORAGE_VALUE |
Ler
WEAVE_ERROR Read( const char *aKey, uint32_t & aValue )
Escrever
WEAVE_ERROR Write( Key aKey, uint32_t aValue )
Grave o valor inteiro de uma chave para armazenamento persistente.
A plataforma é responsável por validar aKey. Se aKey não existir, ela será criada e atribuída a um valor. Caso contrário, qualquer valor existente de aKey será substituído por aValue.
Detalhes | |||||
---|---|---|---|---|---|
Parâmetros |
| ||||
Devoluções | WEAVE_ERROR_INVALID_ARGUMENT se aKey for NULL WEAVE_ERROR_INVALID_STRING_LENGTH se aKey exceder WEAVE_CONFIG_PERSISTED_STORAGE_MAX_KEY_LENGTH WEAVE_NO_ERROR caso contrário |
Escrever
WEAVE_ERROR Write( const char *aKey, uint32_t aValue )