Contents

init(sequentialInfo:callbacks:)

Creates a sequential-access data provider.

Declaration

init?(sequentialInfo info: UnsafeMutableRawPointer?, callbacks: UnsafePointer<CGDataProviderSequentialCallbacks>)

Parameters

  • info:

    A pointer to data of any type or NULL. When Core Graphics calls the functions specified in the callbacks parameter, it sends each of the functions this pointer.

  • callbacks:

    A pointer to a Cgdataprovidersequentialcallbacks structure that specifies the callback functions you implement to handle the data provider’s basic memory management.

Return Value

A new data provider. In Objective-C, you’re responsible for releasing this object using CGDataProviderRelease.

Discussion

You use this function to create a sequential-access data provider that uses callback functions to read data from your program in a single block.

See Also

Creating Sequential-Access Data Providers