withUnsafeBytes
Provides temporary, read-only access to the raw pixel buffer backing the image.
Declaration
func withUnsafeBytes<R>(_ body: (UnsafeRawBufferPointer) throws -> R) rethrows -> R
Summary
Parameters
| Name | Type | Summary |
|---|---|---|
| body | (UnsafeRawBufferPointer) throws -> R | - |
Provides temporary, read-only access to the raw pixel buffer backing the image.