The
argument is a pointer to a
bp
converted value in
Returns
A Boolean value:
JS_TRUE
JSBool JS_ValueToObject()
Description
This function extracts a function argument from a
possible), and passes the converted value back to the caller. If the object is an array, use
JS_GetArrayLength()
Arguments
,
JSContext *cx
jsval v
The
argument is the opaque
cx
The
argument is the
v
The
argument is a pointer to a
op
value in
.
*op
Returns
A Boolean value:
JS_TRUE
JSBool JS_StringToValue()
Description
This function stores a string return value in a
string object.
Arguments
,
JSContext *cx
char *bytes
The
argument is the opaque
cx
The
argument is the string to be stored in the
bytes
copied, so the caller should free the string when it is not needed. If the string size is not
specified (see the
The
argument is the size of the string, in bytes. If
sz
null-terminated string is computed automatically.
464
C-Level Extensibility
JSBool
.
*bp
indicates success;
and
JS_GetElement()
,
JSObject **op
JSContext
structure from which the object is to be extracted.
jsval
JSObject
indicates success;
,
size_t sz
JSContext
argument), the string must be null-terminated.
sz
Boolean value. This function stores the
indicates failure.
JS_FALSE
structure, converts it to an object (if
jsval
to read its contents.
pointer that passes to the JavaScript function.
pointer. This function stores the converted
indicates failure.
JS_FALSE
structure. It allocates a new JavaScript
jsval
,
jsval *vp
pointer that passes to the JavaScript function.
structure. The string data is
jsval
is 0, the length of the
sz
Need help?
Do you have a question about the DREAMWEAVER 8-EXTENDING DREAMWEAVER and is the answer not in the manual?