Contents

CGDataProviderDirectCallbacks

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

Declaration

struct CGDataProviderDirectCallbacks

Overview

You supply a CGDataProviderDirectCallbacks structure to the function init(directInfo:size:callbacks:) to create a data provider for direct access. The functions specified by the CGDataProviderDirectCallbacks structure are responsible for copying data a block at a time to a memory buffer for Core Graphics to use. The functions are also responsible for handling the data provider’s basic memory management. For the callback to work, one of the getBytePointer and getBytesAtPosition parameters must be non-NULL. If both are non-NULL, then getBytePointer is used to access the data.

Topics

Initializers

Instance Properties

See Also

Creating Direct-Access Data Providers