jSStringCreateWithCharacters top-level property

Pointer<NativeType> Function(Pointer<Pointer<NativeType>> chars, Pointer<NativeType> numChars) jSStringCreateWithCharacters
final

Creates a JavaScript string from a buffer of Unicode characters. chars (JSChar*) The buffer of Unicode characters to copy into the new JSString. numChars (size_t) The number of characters to copy from the buffer pointed to by chars. @result (JSStringRef) A JSString containing chars. Ownership follows the Create Rule.

Implementation

final Pointer Function(Pointer<Pointer> chars, Pointer numChars)
    jSStringCreateWithCharacters = JscFfi.lib
        .lookup<NativeFunction<Pointer Function(Pointer<Pointer>, Pointer)>>(
            'JSStringCreateWithCharacters')
        .asFunction();