jSStringCreateWithUTF8CString top-level property

Pointer<NativeType> Function(Pointer<Utf8> string) jSStringCreateWithUTF8CString
final

Creates a JavaScript string from a null-terminated UTF8 string. string (char*) The null-terminated UTF8 string to copy into the new JSString. @result (JSStringRef) A JSString containing string. Ownership follows the Create Rule.

Implementation

final Pointer Function(Pointer<Utf8> string) jSStringCreateWithUTF8CString =
    JscFfi.lib
        .lookup<NativeFunction<Pointer Function(Pointer<Utf8>)>>(
            'JSStringCreateWithUTF8CString')
        .asFunction();