Array

Array

Typedefs

typedef void kuvio_array

Functions

kuvio_array* kuvio_array_from_json(const char* json)
void kuvio_array_free(kuvio_array* array)

Typedef Documentation

typedef void kuvio_array

An array. Can contain a variable number of dynamically typed elements. Dynamic typing comes with a performance penalty, which is why kuvio_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 kuvio_array_* functions.

Function Documentation

void kuvio_array_free(kuvio_array* array)

Releases the memory allocated by array.

kuvio_array* kuvio_array_from_json(const char* json)

Creates an array by decoding the given JSON description.

Parameters
jsonUTF8-encoded text representing a JSON array.
Returns
An opaque pointer to a newly allocated array, or NULL if the call fails.
kuvio_array* pArray = kuvio_array_from_json("[1, 2, 3]");