---
title: JSTypedArrayBytesDeallocator
framework: javascriptcore
role: symbol
role_heading: Type Alias
path: javascriptcore/jstypedarraybytesdeallocator
---

# JSTypedArrayBytesDeallocator

A function that deallocates bytes that pass to a typed array constructor.

## Declaration

```swift
typealias JSTypedArrayBytesDeallocator = (UnsafeMutableRawPointer?, UnsafeMutableRawPointer?) -> Void
```

## Parameters

- `bytes`: A pointer to the bytes that originally pass to the typed array constructor.
- `deallocatorContext  `: A pointer to additional information to use when freeing the bytes.

## See Also

### Creating a Typed Array

- [JSObjectMakeTypedArray(_:_:_:_:)](javascriptcore/jsobjectmaketypedarray(_:_:_:_:).md)
- [JSObjectMakeTypedArrayWithBytesNoCopy(_:_:_:_:_:_:_:)](javascriptcore/jsobjectmaketypedarraywithbytesnocopy(_:_:_:_:_:_:_:).md)
- [JSObjectMakeTypedArrayWithArrayBuffer(_:_:_:_:)](javascriptcore/jsobjectmaketypedarraywitharraybuffer(_:_:_:_:).md)
- [JSObjectMakeTypedArrayWithArrayBufferAndOffset(_:_:_:_:_:_:)](javascriptcore/jsobjectmaketypedarraywitharraybufferandoffset(_:_:_:_:_:_:).md)
- [JSTypedArrayType](javascriptcore/jstypedarraytype.md)
