JSObjectGetArrayBufferBytesPtr top-level property
Pointer<Void> Function(JSContextRef ctx, JSObjectRef object, Pointer<JSValueRef> exception)
JSObjectGetArrayBufferBytesPtr
final
MacOS 10.12, iOS 10.0
Returns a pointer to the data buffer that serves as the backing store for a JavaScript Typed Array object.
object
The Array Buffer object whose internal backing store pointer to return.
exception
A pointer to a JSValueRef in which to store an exception, if any. Pass NULL if you do not care to store an exception.
@result
A pointer to the raw data buffer that serves as object's backing store or NULL if object is not an Array Buffer object.
@discussion
The pointer returned by this function is temporary and is not guaranteed to remain valid across JavaScriptCore API calls.
Implementation
final Pointer<Void> Function(JSContextRef ctx, JSObjectRef object, Pointer<JSValueRef> exception) JSObjectGetArrayBufferBytesPtr =
jscLib.lookup<NativeFunction<Pointer<Void> Function(JSContextRef ctx, JSObjectRef object, Pointer<JSValueRef> exception)>>('JSObjectGetArrayBufferBytesPtr').asFunction();