---
title: "allocate(count:)"
framework: swift
role: symbol
role_heading: Type Method
path: "swift/unsafemutablerawbufferpointer/allocate(count:)"
---

# allocate(count:)

## Declaration

```swift
static func allocate(count: Int) -> UnsafeMutableRawBufferPointer
```
