Function

CGDataConsumerCreate

Creates a data consumer that uses callback functions to write data.

Declaration

CGDataConsumerRef CGDataConsumerCreate(void *info, const CGDataConsumerCallbacks *cbks);

Parameters

info

A pointer to data of any type or NULL. When the callback is called, Core Graphics passes this pointer as the info parameter.

callbacks

A pointer to a structure that specifies the callback functions you implement to copy data sent to the consumer and to handle the consumer’s basic memory management. For a complete description, see CGDataConsumerCallbacks.

Return Value

A new data consumer object. You are responsible for releasing this object using CGDataConsumerRelease.

See Also

Creating Data Consumers

CGDataConsumerCreateWithURL

Creates a data consumer that writes data to a location specified by a URL.

CGDataConsumerCreateWithCFData

Creates a data consumer that writes to a CFData object.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software