Type Alias

CGDataProviderReleaseDataCallback

A callback function that releases data you supply to the function CGDataProviderCreateWithData.

Declaration

typedef void (*CGDataProviderReleaseDataCallback)(void *info, const void *data, size_t size);

Parameters

info

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

data

A pointer to your provider data.

size

The size of the data.

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.

See Also

Callbacks

CGDataProviderGetBytesCallback

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

CGDataProviderReleaseInfoCallback

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

CGDataProviderRewindCallback

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

CGDataProviderSkipBytesCallback

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

CGDataProviderSkipForwardCallback

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

CGDataProviderGetBytePointerCallback

A callback function that returns a generic pointer to the provider data.

CGDataProviderGetBytesAtOffsetCallback

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

CGDataProviderReleaseBytePointerCallback

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

CGDataProviderGetBytesAtPositionCallback

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