CGDataProviderRewindCallback
A callback function that moves the current position in the data stream back to the beginning.
Declaration
typealias CGDataProviderRewindCallback = (UnsafeMutableRawPointer?) -> VoidParameters
- info:
A generic pointer to private data shared among your callback functions. This is the same pointer you supplied to Init(version:getbytes:skipforward:rewind:releaseinfo:).
Discussion
When Core Graphics needs to read from the beginning of the provider’s data stream, your function is called.
For information on how to associate your callback function with a data provider, see CGDataProvider and CGDataProviderSequentialCallbacks.