Function

CGDataConsumerCreateWithCFData

Creates a data consumer that writes to a CFData object.

Declaration

CGDataConsumerRef CGDataConsumerCreateWithCFData(CFMutableDataRef data);

Parameters

data

The CFData object to write to.

Return Value

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

Discussion

You can use this function when you need to represent Core Graphics data as a CFDataRef type. For example, you might create a CFDataRef object that you then copy to the pasteboard.

See Also

Creating Data Consumers

CGDataConsumerCreate

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

CGDataConsumerCreateWithURL

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

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