Go to the source code of this file.
|
typedef struct _LDArrayBuilder * | LDArrayBuilder |
|
◆ 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_builder | The array builder to add the value to. Must not be NULL. |
val | The 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_builder | The 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_builder | The builder to free. |
◆ LDArrayBuilder_New()
Construct a new array builder.
- Returns
- The new array builder.