C++ Client-Side SDK
LaunchDarkly SDK
Public Attributes | List of all members
LDPersistence Struct Reference

#include <builder.h>

Public Attributes

SetFn Set
 
RemoveFn Remove
 
ReadFn Read
 
FreeFn FreeRead
 
void * UserData
 

Detailed Description

Defines a persistence interface suitable for use with SDK configuration.

Member Data Documentation

◆ 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_namespaceThe namespace of the data.
keyThe key of the data.
[out]read_valueOut 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_namespaceThe namespace of the data.
keyThe key of the data.

◆ Set

SetFn LDPersistence::Set

Add or update a value in the store. If the value cannot be set, then the function should complete normally.

Parameters
storage_namespaceThe namespace for the data.
keyThe key for the data.
valueThe 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: