JSStringCreateWithCharacters(_:_:)
Creates a JavaScript string from a buffer of Unicode characters.
Declaration
func JSStringCreateWithCharacters(_ chars: UnsafePointer<JSChar>!, _ numChars: Int) -> JSStringRef!Parameters
- chars:
The buffer of Unicode characters to copy into the new Jsstringref.
- numChars:
The number of characters to copy from the buffer that
charspoints to.
Return Value
A JSStringRef that contains chars. Ownership follows The Create Rule.