SwfdecAsArray

SwfdecAsArray — the array object

Synopsis




                    SwfdecAsArray;
SwfdecAsObject*     swfdec_as_array_new                 (SwfdecAsContext *context);
void                swfdec_as_array_append              (SwfdecAsArray *array,
                                                         guint n,
                                                         const SwfdecAsValue *values);
#define             swfdec_as_array_push                (array,value)

Description

The array object provides some convenience functions for creating and modifying arrays.

Details

SwfdecAsArray

typedef struct {
} SwfdecAsArray;

This is the type of the array object.


swfdec_as_array_new ()

SwfdecAsObject*     swfdec_as_array_new                 (SwfdecAsContext *context);

Creates a new SwfdecAsArray.

context : a SwfdecAsContext
Returns : the new array or NULL on OOM.

swfdec_as_array_append ()

void                swfdec_as_array_append              (SwfdecAsArray *array,
                                                         guint n,
                                                         const SwfdecAsValue *values);

Appends the given values to the array.

array : a SwfdecAsArray
n : number of values to add
values : the values to add

swfdec_as_array_push()

#define             swfdec_as_array_push(array,value)

Adds the given value to the array. This a macro that just calls swfdec_as_array_append().

array : a SwfdecAsArray
value : the value to add