<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "Accelerate",
  "identifier" : "/documentation/Accelerate/BNNSFilterParameters/alloc_memory",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Accelerate"
    ],
    "preciseIdentifier" : "c:@SA@BNNSFilterParameters@FI@alloc_memory"
  },
  "title" : "alloc_memory"
}
-->

# alloc_memory

The function called to allocate memory.

```
var alloc_memory: BNNSAlloc?
```

## Discussion

Must be compatible with the [`free_memory`](/documentation/Accelerate/BNNSFilterParameters/free_memory) function. If `nil`, `posix_memalign(_:_:_:)` will be called.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)