C++ Client-Side SDK
LaunchDarkly SDK
Typedefs | Functions
array_builder.h File Reference
#include <launchdarkly/bindings/c/export.h>
#include <launchdarkly/bindings/c/value.h>
Include dependency graph for array_builder.h:

Go to the source code of this file.

Typedefs

typedef struct _LDArrayBuilder * LDArrayBuilder
 

Functions

 LDArrayBuilder_New ()
 
 LDArrayBuilder_Free (LDArrayBuilder array_builder)
 
 LDArrayBuilder_Add (LDArrayBuilder array_builder, LDValue val)
 
 LDArrayBuilder_Build (LDArrayBuilder array_builder)
 

Function Documentation

◆ LDArrayBuilder_Add()

LDArrayBuilder_Add ( LDArrayBuilder  array_builder,
LDValue  val 
)

Add a value to an array builder.

After calling this method the provider LDValue is consumed. It should not be accessed, and the caller doesn't need to call LDValue_Free.

Parameters
array_builderThe array builder to add the value to. Must not be NULL.
valThe value to add. Must not be NULL.

◆ LDArrayBuilder_Build()

LDArrayBuilder_Build ( LDArrayBuilder  array_builder)

Construct an LDValue from an array builder.

After calling this method the array builder is consumed. It should not be used and the caller does not need to call LDArrayBuilder_Free.

Parameters
array_builderThe array builder to build an LDValue from. Must not be NULL.
Returns
The built LDValue. Must not be NULL.

◆ LDArrayBuilder_Free()

LDArrayBuilder_Free ( LDArrayBuilder  array_builder)

Free an array builder. This should only be done for a builder which has not been built. Calling LDArrayBuilder_Build on an array builder consumes the array builder.

Parameters
array_builderThe builder to free.

◆ LDArrayBuilder_New()

LDArrayBuilder_New ( )

Construct a new array builder.

Returns
The new array builder.