JSObjectSetPrivate top-level property

bool Function(JSObjectRef object, Pointer<Void> data) JSObjectSetPrivate
final

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

Implementation

final bool Function(JSObjectRef object, Pointer<Void> data) JSObjectSetPrivate =
    jscLib.lookup<NativeFunction<Bool Function(JSObjectRef object, Pointer<Void> data)>>('JSObjectSetPrivate').asFunction();