Contents

withUnsafeUnderlyingArray(_:)

Calls a closure with an unsafe reference to the array.

Declaration

func withUnsafeUnderlyingArray<ReturnType>(_ closure: (xpc_object_t) throws -> ReturnType) rethrows -> ReturnType

Parameters

  • closure:

    A closure that takes an Xpc_object_t parameter. If closure has a return value, that value is also used as the return value for the withUnsafeUnderlyingArray(body:) function.

Return Value

The return value, if any, of the closure.

See Also

Accessing elements