API Reference | developer.brewmp.com API Reference | developer.brewmp.com

Developer

API Reference

IPERSISTENTSTORAGE_WRITE()

Brew Release
Brew MP 1.0.2
See Also
Error Codes
Description
Store a value associated with the supplied key.
Params
storage
[]:
Pointer to the IPersistentStorage interface object.
key
[]:
The key component of the key/value pair to be stored.
length
[]:
The length of the supplied value.
data
[]:
A buffer of length bytes containing the value to be stored.
writeNow
[]:
TRUE indicates that the write should immediately be persisted to flash or disk. FALSE indicates that the result can be cached and may be written to disk later. Use FALSE if performance is more important than information safety, TRUE otherwise.
Interface
  • IPERSISTENTSTORAGE
Prototype
  •    int IPERSISTENTSTORAGE_Write(IPersistentStorage* storage, const
                                    AECHAR* key, uint32 length,
                                    void* data, BOOLEAN writeNow);
    
Return
  • AEE_SUCCESS: The value was successfully stored. AEE_EFAILED: The requested value was not stored.
Side Effect
  • None
Comments
None