va_array🔗
#include <va_array.h>
Typedefs
-
typedef void
va_array
🔗 An array.
Arrays can contain a variable number of dynamically typed elements. Dynamic typing comes with a performance penalty, which is why va_matrix is the de facto way of handling numeric data. Through the C interface, arrays are passed as opaque pointers that can be manipulated using the
va_array_*
functions.
Functions
-
va_array *
va_array_from_json
(const void *json)🔗 Creates an array by decoding the given JSON description.
va_array* pArray = va_array_from_json("[1, 2, 3]");
- Return
An opaque pointer to a newly allocated array, or NULL if the call fails due to error in json or insufficient memory.
- Parameters
json
: UTF-8-encoded text or a va_string representing a JSON array.