Function

JSObjectGetArrayBufferBytesPtr(_:_:_:)

Returns a pointer to the data buffer that serves as the backing store for a JavaScript Typed Array object.

Declaration

func JSObjectGetArrayBufferBytesPtr(_ ctx: JSContextRef!, _ object: JSObjectRef!, _ exception: UnsafeMutablePointer<JSValueRef?>!) -> UnsafeMutableRawPointer!

Parameters

ctx

The execution context to use.

object

The JSObjectRef whose Typed Array type data pointer to obtain.

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.

Discussion

The pointer returned by this function is temporary and is not guaranteed to remain valid across JavaScriptCore API calls.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software