Typically, this argument is passed in and converted using the
function.
Returns
A pointer to a null-terminated string. The caller should not free this string when it finishes.
JSObject *JS_NewArrayObject()
Description
This function creates a new object that contains an array of
Arguments
,
JSContext *cx
unsigned int length
The
argument is the opaque
cx
The
argument is the number of elements that the array can hold.
length
The
argument is an optional pointer to the
v
return value is not
, the initial content of the array object is undefined and can be set using the
null
JS_SetElement()
Returns
A pointer to a new array object or the value
long JS_GetArrayLength()
Description
Given a pointer to an array object, this function gets the number of elements in the array.
Arguments
,
JSContext *cx
JSObject *obj
The
argument is the opaque
cx
The
argument is a pointer to an array object.
obj
Returns
The number of elements in the array or -1 upon failure.
,
jsval *v
JSContext
,
is an array that contains
null
v
function.
JSContext
JSVals
pointer that passes to the JavaScript function.
to be stored in the array. If the
jsvals
elements. If the return value is
length
upon failure.
null
pointer that passes to the JavaScript function.
JS_ValueToObject()
.
The C-level API
467
Need help?
Do you have a question about the DREAMWEAVER 8-EXTENDING DREAMWEAVER and is the answer not in the manual?