withUnsafeBytes(_:)
Read the buffer synchronously on the CPU. The buffer provided is only valid for the lifetime of the callback.
Declaration
final func withUnsafeBytes(_ callback: (UnsafeRawBufferPointer) -> Void)Read the buffer synchronously on the CPU. The buffer provided is only valid for the lifetime of the callback.
final func withUnsafeBytes(_ callback: (UnsafeRawBufferPointer) -> Void)