Creates a direct-access data provider that uses data your program supplies.
- iOS 2.0+
- macOS 10.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
- Core Graphics
A pointer to data of any type, or
NULL. When Core Graphics calls the function specified in the
releaseparameter, it sends this pointer as its first argument.
A pointer to the array of data that the provider contains.
A value that specifies the number of bytes that the data provider contains.
A pointer to a release callback for the data provider, or
NULL. Your release function is called when Core Graphics frees the data provider. For more information, see
Provider Release Data Callback
A new data provider. You are responsible for releasing this object using
You use this function to create a direct-access data provider that uses callback functions to read data from your program an entire block at one time.