xpc_array_dup_fd(_:_:)
Gets a file descriptor from an array directly.
Declaration
func xpc_array_dup_fd(_ xarray: xpc_object_t, _ index: Int) -> Int32Parameters
- xarray:
The array which is to be examined.
- index:
The index of the value to obtain. This value must lie within the index space of the array (0 to N-1 inclusive, where N is the count of the array). If the index is outside that range, the behavior is undefined.
Return Value
A new file descriptor created from the value at the specified index. You are responsible for closing this descriptor. -1 if the value at the specified index is not a file descriptor value.
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_get_array(_:_:)xpc_array_get_bool(_:_:)xpc_array_get_data(_:_:_:)xpc_array_get_date(_:_:)xpc_array_get_dictionary(_:_:)xpc_array_get_double(_:_:)