CGDataProvider
An abstraction for data-reading tasks that eliminates the need to manage a raw memory buffer.
Declaration
class CGDataProviderOverview
Data provider objects abstract the data-access task and eliminate the need for applications to manage data through a raw memory buffer.
For information on how to use CGDataProvider functions, see Quartz 2D Programming Guide Programming Guide.
See also CGDataConsumer.
Topics
Creating Sequential-Access Data Providers
init(sequentialInfo:callbacks:)CGDataProviderSequentialCallbacksCGDataProviderRewindCallbackCGDataProviderGetBytesCallbackCGDataProviderSkipForwardCallbackCGDataProviderReleaseInfoCallback
Creating Direct-Access Data Providers
init(directInfo:size:callbacks:)init(data:)init(url:)init(dataInfo:data:size:releaseData:)init(filename:)CGDataProviderDirectCallbacksCGDataProviderGetBytePointerCallbackCGDataProviderGetBytesAtPositionCallbackCGDataProviderReleaseBytePointerCallbackCGDataProviderReleaseInfoCallbackCGDataProviderReleaseDataCallback
Getting Data from a Data Provider
Working with Core Foundation Types
Instance Properties
See Also
Related Documentation
- Quartz 2D Programming Guide