Top | ![]() |
![]() |
![]() |
![]() |
SwfdecAsObject * | swfdec_as_array_new () |
#define | swfdec_as_array_append() |
void | swfdec_as_array_append_with_flags () |
void | swfdec_as_array_insert () |
void | swfdec_as_array_insert_with_flags () |
#define | swfdec_as_array_push() |
#define | swfdec_as_array_push_with_flags() |
gint32 | swfdec_as_array_get_length () |
void | swfdec_as_array_set_length () |
void | swfdec_as_array_get_value () |
void | swfdec_as_array_set_value () |
void | swfdec_as_array_remove () |
SwfdecAsObject *
swfdec_as_array_new (SwfdecAsContext *context
);
Creates a new array.
#define swfdec_as_array_append(array,n,values)
Appends the given values
to the array
. This is a macro that just calls
swfdec_as_array_append_with_flags()
.
void swfdec_as_array_append_with_flags (SwfdecAsObject *array
,guint n
,const SwfdecAsValue *values
,SwfdecAsVariableFlag flags
);
Appends the given values
to the array
using the given flags
.
array |
the array |
|
n |
number of values to add |
|
values |
the values to add |
|
flags |
the SwfdecAsVariableFlag flags to use |
void swfdec_as_array_insert (SwfdecAsObject *array
,gint32 idx
,SwfdecAsValue *value
);
Inserts value
to array
at given index, making room for it by moving
elements to bigger indexes if necessary. This is a macro that just calls
swfdec_as_array_insert_with_flags()
.
void swfdec_as_array_insert_with_flags (SwfdecAsObject *array
,gint32 idx
,const SwfdecAsValue *value
,SwfdecAsVariableFlag flags
);
Inserts value
to array
at given index using given flags
, making room for
it by moving elements to bigger indexes if necessary.
array |
the array |
|
idx |
index to insert the value to |
|
value |
||
flags |
the SwfdecAsVariableFlag flags to use |
#define swfdec_as_array_push(array,value)
Adds the given value
to the array
. This is a macro that just calls
swfdec_as_array_append_with_flags()
.
#define swfdec_as_array_push_with_flags(array,value,flags)
Adds the given value
to the array
with the given flags
. This is a macro
that just calls swfdec_as_array_append_with_flags()
.
gint32
swfdec_as_array_get_length (SwfdecAsObject *array
);
Gets the current length of the array
.
void swfdec_as_array_set_length (SwfdecAsObject *array
,gint32 length
);
Sets the length of the array
. Values outside the new length will be
removed.
void swfdec_as_array_get_value (SwfdecAsObject *array
,gint32 idx
,SwfdecAsValue *value
);
Gets a value from given index, if the value doesn't exists an undefined value is set.
array |
the array |
|
idx |
index of the value to get |
|
value |
a pointer to SwfdecAsValue that will be set |
void swfdec_as_array_set_value (SwfdecAsObject *array
,gint32 idx
,SwfdecAsValue *value
);
Sets a value
to given index. The array
's length will be increased if
necessary.
void swfdec_as_array_remove (SwfdecAsObject *array
,gint32 idx
);
Removes value at given index from the array
, elements with higher indexes
will be moved towards the start of the array
.