xpc_array_set_connection(_:_:_:)
Inserts a connection into an array.
Declaration
func xpc_array_set_connection(_ xarray: xpc_object_t, _ index: Int, _ connection: xpc_connection_t)Parameters
- xarray:
The array object which is to be manipulated.
- index:
The index at which to insert the value. This value must lie within the index space of the array (0 to N-1 inclusive, where N is the count of the array) or be Xpc_array_append Swift.var. If the index is outside that range, the behavior is undefined.
- connection:
The connection to insert. After calling this method, the XPC object corresponding to the primitive value inserted may be safely retrieved with Xpc_array_get_value(_:_:). The connection is NOT retained by the array.
See Also
Array objects
XPCArrayxpc_array_create(_:_:)xpc_array_create_empty()xpc_array_create_connection(_:_:)xpc_array_set_value(_:_:_:)xpc_array_get_value(_:_:)xpc_array_append_value(_:_:)xpc_array_get_count(_:)xpc_array_apply(_:_:)xpc_array_dup_fd(_:_:)xpc_array_get_array(_:_:)xpc_array_get_bool(_:_:)xpc_array_get_data(_:_:_:)xpc_array_get_date(_:_:)xpc_array_get_dictionary(_:_:)