A callback function that returns a generic pointer to the provider data.
SDKs
- iOS 2.0+
- macOS 10.3+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
Framework
- Core Graphics
Declaration
typedef const void * _Nullable (*CGDataProviderGetBytePointerCallback)(void *info);
Parameters
info
A generic pointer to private data shared among your callback functions. This is the same pointer you supplied to
CGData
.Provider Create Direct Access
Return Value
A generic pointer to your provider data. By suppling this pointer, you are giving Core Graphics read-only access to both the pointer and the underlying provider data. You must not move or modify the provider data until Core Graphics calls your CGData
function.
Discussion
When Core Graphics needs direct access to your provider data, this function is called.
For information on how to associate your function with a direct-access data provider, see CGData
and CGData
.