---
title: "JSObjectGetArrayBufferBytesPtr(_:_:_:)"
framework: javascriptcore
role: symbol
role_heading: Function
path: "javascriptcore/jsobjectgetarraybufferbytesptr(_:_:_:)"
---

# JSObjectGetArrayBufferBytesPtr(_:_:_:)

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

## Declaration

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

## Parameters

- `ctx`: The execution context to use.
- `object`: The doc://com.apple.javascriptcore/documentation/JavaScriptCore/JSObjectRef with the typed array type data pointer to obtain.
- `exception`: A pointer to a doc://com.apple.javascriptcore/documentation/JavaScriptCore/JSValueRef to store an exception in, if any. Pass NULL to discard any exception.

## Discussion

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

## See Also

### Working with Array Buffers

- [JSObjectMakeArrayBufferWithBytesNoCopy(_:_:_:_:_:_:)](javascriptcore/jsobjectmakearraybufferwithbytesnocopy(_:_:_:_:_:_:).md)
- [JSObjectGetArrayBufferByteLength(_:_:_:)](javascriptcore/jsobjectgetarraybufferbytelength(_:_:_:).md)
