Defines pointers to client-defined callback functions that manage the sending of data for a direct-access data provider.
- iOS 2.0+
- macOS 10.5+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
- Core Graphics
You supply a
CGData structure to the function
init(direct to create a data provider for direct access. The functions specified by the
CGData structure are responsible for copying data a block at a time to a memory buffer for Core Graphics to use. The functions are also responsible for handling the data provider’s basic memory management. For the callback to work, one of the
get parameters must be non-
NULL. If both are non-
get is used to access the data.