Function

CGDataProviderCreateWithCFData

Creates a data provider that reads from a CFData object.

Declaration

CGDataProviderRef CGDataProviderCreateWithCFData(CFDataRef data);

Parameters

data

The CFData object to read from.

Return Value

A new data provider. You are responsible for releasing this object using CGDataProviderRelease.

Discussion

You can use this function when you need to represent Core Graphics data as a CFData type. For example, you might create a CFData object when reading data from the pasteboard.

See Also

CGDataProvider Miscellaneous Functions

CGDataProviderCreate

Creates a sequential-access data provider.

CGDataProviderCreateDirectAccess

Creates a direct-access data provider.

CGDataProviderCreateWithData

Creates a direct-access data provider that uses data your program supplies.

CGDataProviderCreateWithURL

Creates a direct-access data provider that uses a URL to supply data.

CGDataProviderCreateWithFilename

Creates a direct-access data provider that uses a file to supply data.

CGDataProviderGetTypeID

Returns the Core Foundation type identifier for data providers.

CGDataProviderCopyData

Returns a copy of the provider’s data.

CGDataProviderRelease

Decrements the retain count of a data provider.

CGDataProviderRetain

Increments the retain count of a data provider.

CGDataProviderCreateSequential

Creates a sequential-access data provider.

CGDataProviderCreateDirect

Creates a direct-access data provider.