Function
xpc _dictionary _set _data Inserts a raw data value into a dictionary.
SDKs
macOS 10.7+ Mac Catalyst 13.0+ Declaration void xpc_dictionary_set_data (xpc _object _t xdict, const char *key, const void *bytes, size _t length);
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
See Also
Miscellaneous xpc _array _get _data
Gets a pointer to the raw bytes of a data object from an array directly.
xpc _fd _create
Creates an XPC object representing a POSIX file descriptor.
xpc _fd _dup
Returns a file descriptor that is equivalent to the one boxed by the file descriptor object.
xpc _hash
Calculates a hash value for the given object.
xpc _release
Decrements the reference count of an object.
xpc _retain
Increments the reference count of an object.
xpc _shmem _create
Creates an XPC object representing the given shared memory region.
xpc _shmem _map
Maps the region boxed by the XPC shared memory object into the caller’s address space.
xpc _uuid _create
Creates an XPC object representing a universally-unique identifier (UUID) as described by uuid(3).