Contents

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 with the typed array type data pointer to obtain.

  • exception:

    A pointer to a Jsvalueref to store an exception in, if any. Pass NULL to discard any exception.

Discussion

The pointer that this function returns is temporary and may not remain valid across JavaScriptCore API calls.

See Also

Working with Array Buffers