#include <builder.h>
Defines a persistence interface suitable for use with SDK configuration.
◆ FreeRead
FreeFn LDPersistence::FreeRead |
The SDK will call this function after it has finished with the read_value from Read.
◆ Read
ReadFn LDPersistence::Read |
Attempt to read a value from the store.
- Parameters
-
| storage_namespace | The namespace of the data. |
| key | The key of the data. |
[out] | read_value | Out buffer containing the read string data. Should be set to null if no data was read. |
- Returns
- The number of characters read. Should be 0 if no data was read.
◆ Remove
RemoveFn LDPersistence::Remove |
Remove a value from the store. If the value cannot be removed, then the function should complete normally.
- Parameters
-
storage_namespace | The namespace of the data. |
key | The key of the data. |
◆ Set
Add or update a value in the store. If the value cannot be set, then the function should complete normally.
- Parameters
-
storage_namespace | The namespace for the data. |
key | The key for the data. |
value | The data to add or update. |
◆ UserData
void* LDPersistence::UserData |
UserData is forwarded into all method calls in this struct.
The documentation for this struct was generated from the following file:
- include/launchdarkly/client_side/bindings/c/config/builder.h