jSObjectSetPrivate top-level property

int Function(Pointer<NativeType> object, Pointer<NativeType> data) jSObjectSetPrivate

Sets a pointer to private data on an object. The default object class does not allocate storage for private data. Only objects created with a non-NULL JSClass can store private data. object (JSObjectRef) The JSObject whose private data you want to set. data (void*) A void* to set as the object's private data. @result (bool) true if object can store private data, otherwise false.


final int Function(Pointer object, Pointer data) jSObjectSetPrivate = jscLib
    .lookup<NativeFunction<Int8 Function(Pointer, Pointer)>>(