---
title: "init(_:)"
framework: swift
role: symbol
role_heading: Initializer
path: "swift/unsafemutablerawbufferpointer/init(_:)-9dmrh"
---

# init(_:)

Creates a raw buffer over the contiguous bytes in the given typed buffer.

## Declaration

```swift
init<T>(_ buffer: UnsafeMutableBufferPointer<T>) where T : ~Copyable
```

## Parameters

- `buffer`: The typed buffer to convert to a raw buffer. The buffer’s type T must be a trivial type.
