Type Alias

CGDataProviderRewindCallback

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

Declaration

typealias CGDataProviderRewindCallback = (UnsafeMutableRawPointer?) -> Void

Parameters

info

A generic pointer to private data shared among your callback functions. This is the same pointer you supplied to CGDataProviderCreate.

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 CGDataProviderCreate and CGDataProviderCallbacks.

See Also

Creating Sequential-Access Data Providers

struct CGDataProviderSequentialCallbacks

Defines a structure containing pointers to client-defined callback functions that manage the sending of data for a sequential-access data provider.

typealias CGDataProviderGetBytesCallback

A callback function that copies from a provider data stream into a Core Graphics buffer.

typealias CGDataProviderSkipForwardCallback

A callback function that advances the current position in the data stream supplied by the provider.

typealias CGDataProviderReleaseInfoCallback

A callback function that releases any private data or resources associated with the data provider.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software