Contents

xpc_array_set_data(_:_:_:_:)

Inserts a raw data value into an array.

Declaration

func xpc_array_set_data(_ xarray: xpc_object_t, _ index: Int, _ bytes: UnsafeRawPointer?, _ length: Int)

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.

  • bytes:

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

  • length:

    The length of the data.

See Also

Array objects