---
title: "withUnsafePointer(_:)"
framework: vision
role: symbol
role_heading: Instance Method
path: "vision/opticalflowobservation/withunsafepointer(_:)"
---

# withUnsafePointer(_:)

Invokes the given closure with a pointer to the given argument.

## Declaration

```swift
func withUnsafePointer<R>(_ body: (UnsafeRawPointer) -> R) -> R
```
