# `FTPointArray withUnsafePoints(_:)`

*Instance Method*

Calls a closure with the contiguous point storage.

## Declaration

```swift
func withUnsafePoints<E, Result>(_ body: (UnsafeBufferPointer<CGPoint>) throws(E) -> Result) throws(E) -> Result where E : Error
```

## Parameters

- `body` — A closure that receives the points without copying them.

## Return Value

The value returned by the closure.

## Discussion

The buffer is valid only for the duration of the closure. Do not mutate the point array while the closure is executing.

