Function JSStringCreateWithCharacters

Source
pub unsafe extern "C" fn JSStringCreateWithCharacters(
    chars: *const JSChar,
    numChars: usize,
) -> JSStringRef
Expand description

Creates a JavaScript string from a buffer of Unicode characters.

  • chars: The buffer of Unicode characters to copy into the new JSStringRef.
  • numChars: The number of characters to copy from the buffer pointed to by chars.

Returns a JSStringRef containing chars. Ownership follows the Create Rule.