withUnsafeMutableBytes(_:)
Update the buffer’s contents synchronously on the CPU. The buffer provided is only valid for the lifetime of the callback.
Declaration
final func withUnsafeMutableBytes(_ callback: (UnsafeMutableRawBufferPointer) -> Void)Update the buffer’s contents synchronously on the CPU. The buffer provided is only valid for the lifetime of the callback.
final func withUnsafeMutableBytes(_ callback: (UnsafeMutableRawBufferPointer) -> Void)