Contents

withUnsafeUnderlyingDictionary(_:)

Calls a closure with an unsafe reference to the dictionary.

Declaration

func withUnsafeUnderlyingDictionary<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 withUnsafeUnderlyingDictionary(body:) function.

Return Value

The return value, if any, of the closure.

Discussion

See Also

Accessing keys and values