Type Alias

CGDataProviderGetBytePointerCallback

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

Declaration

typedef const void * _Nullable (*CGDataProviderGetBytePointerCallback)(void *info);

Parameters

info

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

Return Value

A generic pointer to your provider data. By suppling this pointer, you are giving Core Graphics read-only access to both the pointer and the underlying provider data. You must not move or modify the provider data until Core Graphics calls your CGDataProviderReleaseBytePointerCallback function.

Discussion

When Core Graphics needs direct access to your provider data, this function is called.

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

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.

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.

CGDataProviderReleaseDataCallback

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

CGDataProviderGetBytesAtPositionCallback

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