Contents

CGDataProviderRewindCallback

A callback function that moves the current position in the data stream back to the beginning.

Declaration

typealias CGDataProviderRewindCallback = (UnsafeMutableRawPointer?) -> Void

Parameters

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.

See Also

Creating Sequential-Access Data Providers