jSStringGetLength top-level property

int Function(Pointer<NativeType> string) jSStringGetLength
final

Returns the number of Unicode characters in a JavaScript string. string (JSStringRef) The JSString whose length (in Unicode characters) you want to know. @result (size_t) The number of Unicode characters stored in string.

Implementation

final int Function(Pointer string) jSStringGetLength = JscFfi.lib
    .lookup<NativeFunction<Int32 Function(Pointer)>>('JSStringGetLength')
    .asFunction();