withUnsafeUnderlyingArray(_:)
Calls a closure with an unsafe reference to the array.
Declaration
func withUnsafeUnderlyingArray<ReturnType>(_ closure: (xpc_object_t) throws -> ReturnType) rethrows -> ReturnTypeParameters
- closure:
A closure that takes an Xpc_object_t parameter. If
closurehas 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.