Contents

CGDataProviderReleaseBytePointerCallback

A callback function that releases the pointer Core Graphics obtained by calling Cgdataprovidergetbytepointercallback.

Declaration

typealias CGDataProviderReleaseBytePointerCallback = (UnsafeMutableRawPointer?, UnsafeRawPointer) -> Void

Parameters

  • info:

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

  • pointer:

    A pointer to your provider data. This is the same pointer you returned in Cgdataprovidergetbytepointercallback.

Discussion

When Core Graphics no longer needs direct access to your provider data, your function is called. You may safely modify, move, or release your provider data at this time.

For information on how to associate your function with a direct-access data provider, see CGDataProviderCreateDirectAccess and CGDataProviderDirectAccessCallbacks.

See Also

Creating Direct-Access Data Providers