Retrieve a pointer to the 16-bit values that make up a given string.
jschar * JS_GetStringChars(JSString *str);
| Name | Type | Description |
|---|---|---|
str |
JSString * |
String to obtain characters from. |
JS_GetStringChars returns a pointer to an array of jschars. Warnings:
JS_GetStringLength.
The array returned by this function remains valid as long as str is valid. (Eventually, str becomes unreachable, the garbage collector collects it, and the array is freed by the system.)
Page last modified 20:01, 5 Sep 2008 by Jorend