Skip to main content
←API Reference ←NSDK ←NSDKImage

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​

Provides temporary, read-only access to the raw pixel buffer backing the image.

Parameters​

NameTypeSummary
body (UnsafeRawBufferPointer) throws -> R
-