pub unsafe extern "C-unwind" fn JSStringCreateWithCharacters(
chars: *const JSChar,
num_chars: usize,
) -> JSStringRef
Available on crate features
JSStringRef
and JSBase
only.Expand description
Creates a JavaScript string from a buffer of Unicode characters.
Parameter chars
: The buffer of Unicode characters to copy into the new JSString.
Parameter numChars
: The number of characters to copy from the buffer pointed to by chars.
Returns: A JSString containing chars. Ownership follows the Create Rule.