Developer

API Reference

IPERSISTENTSTORAGE_Write()

deprecated
Items marked as deprecated have been replaced by a more powerful, alternative feature. Deprecated interfaces include a reference to the replacement interface, which should be used for all new application development. Deprecated features are still supported for backward compatibility, but should be avoided when developing new applications.
Brew Release
Brew MP 1.0.2
See Also
Error Codes
Description
Store a value associated with the supplied key.
Parameters
  • 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
Comment
None
  • Follow