Contents

xpc_dictionary_set_data(_:_:_:_:)

Inserts a raw data value into a dictionary.

Declaration

func xpc_dictionary_set_data(_ xdict: xpc_object_t, _ key: UnsafePointer<CChar>, _ bytes: UnsafeRawPointer?, _ length: Int)

Parameters

  • xdict:

    The dictionary which is to be manipulated.

  • key:

    The key for which the primitive value shall be set.

  • bytes:

    The bytes to insert. After calling this method, the XPC object corresponding to the primitive value inserted may be safely retrieved with Xpc_dictionary_get_value(_:_:).

  • length:

    The length of the data.

See Also

Dictionary objects