---
title: acquireFunction
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/nspointerfunctions/acquirefunction
---

# acquireFunction

The function used to acquire memory.

## Declaration

```swift
var acquireFunction: ((UnsafeRawPointer, ((UnsafeRawPointer) -> Int)?, ObjCBool) -> UnsafeMutableRawPointer)? { get set }
```

## Discussion

Discussion This specifies the function to use for copy-in operations.

## See Also

### Memory Configuration

- [relinquishFunction](foundation/nspointerfunctions/relinquishfunction.md)
- [usesStrongWriteBarrier](foundation/nspointerfunctions/usesstrongwritebarrier.md)
- [usesWeakReadAndWriteBarriers](foundation/nspointerfunctions/usesweakreadandwritebarriers.md)
