A callback function that copies from a provider data stream into a Core Graphics buffer.
- iOS 2.0+
- macOS 10.3+
- UIKit for Mac 13.0+Beta
- tvOS 9.0+
- watchOS 2.0+
A generic pointer to private data shared among your callback functions. This is the same pointer you supplied to
The Core Graphics buffer into which you copy the specified number of bytes.
The number of bytes to copy.
The number of bytes copied. If no more data can be written to the buffer, you should return
When Core Graphics is ready to receive data from the provider data stream, your function is called. It should copy the specified number of bytes into
For information on how to associate your callback function with a data provider, see
Creating Sequential-Access Data Providers
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