JS_GetTwoByteExternalStringChars

This article covers features introduced in SpiderMonkey 38

Get the chars of an external string.

Syntax

const char16_t *
JS_GetTwoByteExternalStringChars(JSString *str);
Name Type Description
str JSString * A string to get characters.

Description

JS_GetTwoByteExternalStringChars gets the characters of the string, str.

JS_GetTwoByteExternalStringChars always succeeds, and returns a pointer to the string.

See Also