A structure that contains pointers to callback functions that manage the copying of data for a data consumer.
- iOS 2.0+
- macOS 10.0+
- tvOS 9.0+
- watchOS 2.0+
- Core Graphics
The functions specified by the
CGData structure are responsible for copying data that Core Graphics sends to your consumer and for handling the consumer’s basic memory management. You supply this structure to the function
init(info: to create a data consumer.