Contents

xpc_data_create_with_dispatch_data(_:)

Creates an XPC object that represents a buffer of bytes that the specified GCD data object describes.

Declaration

func xpc_data_create_with_dispatch_data(_ ddata: dispatch_data_t) -> xpc_object_t

Parameters

  • ddata:

    The GCD data object containing the bytes which are to be boxed. This object is retained by the data object.

Return Value

A new data object.

Discussion

The object returned by this method will refer to the buffer returned by dispatch_data_create_map. The point where XPC will make the call to dispatch_data_create_map is undefined.

See Also

Data objects