Contents

xpc_dictionary_get_data(_:_:_:)

Gets a raw data value from a dictionary directly.

Declaration

func xpc_dictionary_get_data(_ xdict: xpc_object_t, _ key: UnsafePointer<CChar>, _ length: UnsafeMutablePointer<Int>?) -> UnsafeRawPointer?

Parameters

  • xdict:

    The dictionary object which is to be examined.

  • key:

    The key whose value is to be obtained.

  • length:

    For the data type, the third parameter, upon output, will contain the length of the data corresponding to the specified key.

Return Value

The underlying raw data for the specified key. NULL if the value for the specified key is not a data value or if there is no value for the specified key.

See Also

Dictionary objects