Contents

dispatch_data_copy_region

Returns a data object containing a portion of the data in another data object.

Declaration

extern dispatch_data_t dispatch_data_copy_region(dispatch_data_t data, size_t location, size_t *offset_ptr);

Parameters

  • data:

    The dispatch data object to query.

  • location:

    The byte offset to use when determining which memory region to return.

  • offset_ptr:

    On input, a pointer to a variable. On output, this variable contains the offset from the beginning of data of the returned memory region.

Return Value

A dispatch data object containing a copy of the entire memory region that contains the specified location.

See Also

Creating a Dispatch Data Object