---
title: "init(unsafeBuffer:)"
framework: corevideo
role: symbol
role_heading: Initializer
path: "corevideo/cvreadonlypixelbuffer/init(unsafebuffer:)"
---

# init(unsafeBuffer:)

Initialize a read-only pixel buffer by transferring existing CVPixelBuffer value.

## Declaration

```swift
init(unsafeBuffer: sending CVPixelBuffer)
```

## Parameters

- `unsafeBuffer`: Owership of this buffer is transferred to the new instance. This buffer is not copied and must not be modified after this call.
