jSStringGetMaximumUTF8CStringSize top-level property
take up if converted into a null-terminated UTF8 string.
string (JSStringRef) The JSString whose maximum converted size (in bytes) you want to know.
@result (size_t) The maximum number of bytes that could be required to convert string into a null-terminated UTF8 string. The number of bytes that the conversion actually ends up requiring could be less than this, but never more.
final int Function(Pointer string) jSStringGetMaximumUTF8CStringSize = jscLib .lookup<NativeFunction<Uint32 Function(Pointer)>>( 'JSStringGetMaximumUTF8CStringSize') .asFunction();