jSStringGetCharactersPtr top-level property

Pointer<Utf16> Function(Pointer<NativeType> string) jSStringGetCharactersPtr
final

Returns a pointer to the Unicode character buffer that serves as the backing store for a JavaScript string. string (JSStringRef) The JSString whose backing store you want to access. @result (const JSChar*) A pointer to the Unicode character buffer that serves as string's backing store, which will be deallocated when string is deallocated.

Implementation

final Pointer<Utf16> Function(Pointer string) jSStringGetCharactersPtr = JscFfi
    .lib
    .lookup<NativeFunction<Pointer<Utf16> Function(Pointer)>>(
        'JSStringGetCharactersPtr')
    .asFunction();