init(info:cbks:)
Creates a data consumer that uses callback functions to write data.
Declaration
init?(info: UnsafeMutableRawPointer?, cbks: UnsafePointer<CGDataConsumerCallbacks>)Parameters
- info:
A pointer to data of any type or
NULL. When the callback is called, Core Graphics passes this pointer as theinfoparameter. - cbks:
A pointer to a structure that specifies the callback functions you implement to copy data sent to the consumer and to handle the consumer’s basic memory management. For a complete description, see Cgdataconsumercallbacks.
Return Value
A new data consumer object. In Objective-C, you’re responsible for releasing this object using CGDataConsumerRelease.