Function mozjs_sys::jsapi::JS_CopyStringCharsZ
source · pub unsafe extern "C" fn JS_CopyStringCharsZ(
cx: *mut JSContext,
str_: *mut JSString,
) -> UniqueTwoByteChars
Expand description
Copies the string’s characters to a null-terminated char16_t buffer.
Returns nullptr on OOM.