Function script::dom::bindings::import::module::jsapi::JS_string_malloc

source ยท
pub unsafe extern "C" fn JS_string_malloc(
    cx: *mut JSContext,
    nbytes: usize,
) -> *mut c_void
Expand description

Same as above, but for buffers that will be used with the BYOB (Bring Your Own Buffer) JSString creation functions, such as JS_NewLatin1String and JS_NewUCString