withUnsafeBytes(_:)
Calls a given closure with a raw pointer to the multiarray’s storage.
Declaration
func withUnsafeBytes<R>(_ body: (UnsafeRawBufferPointer) throws -> R) rethrows -> RParameters
- body:
A closure with an Unsaferawbufferpointer parameter that points to the storage for the multiarray. This closure takes the following parameter:
ptrThe pointer to the buffer.