Contents

withUnsafeBytes(_:)

Calls a given closure with a raw pointer to the multiarray’s storage.

Declaration

func withUnsafeBytes<R>(_ body: (UnsafeRawBufferPointer) throws -> R) rethrows -> R

Parameters

  • body:

    A closure with an Unsaferawbufferpointer parameter that points to the storage for the multiarray. This closure takes the following parameter:

    ptr

    The pointer to the buffer.

See Also

Providing buffer access