Deprecated CGDataProvider Functions

A function identified as deprecated has been superseded and may become unsupported in the future.

Available in OS X v10.0 through OS X v10.7

CGDataProviderCreate

Creates a Quartz sequential-access data provider. (Available in OS X v10.0 through OS X v10.7.)

CGDataProviderRef CGDataProviderCreate (
   void *info,
   const CGDataProviderCallbacks *callbacks
);
Parameters
info

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

callbacks

A pointer to a CGDataProviderCallbacks structure that specifies the callback functions you implement to handle the data provider’s basic memory management. For a complete description, see CGDataProviderCallbacks.

Return Value

A new data provider. You are 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 stream.

Availability
  • Available in OS X v10.0 through OS X v10.7.
  • Deprecated in OS X v10.5.
Declared In
CGDataProvider.h

CGDataProviderCreateDirectAccess

Creates a Quartz direct-access data provider. (Available in OS X v10.0 through OS X v10.7.)

CGDataProviderRef CGDataProviderCreateDirectAccess (
   void *info,
   size_t size,
   const CGDataProviderDirectAccessCallbacks *callbacks
);
Parameters
info

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

size

A value that specifies the number of bytes that the data provider contains.

callbacks

A pointer to a CGDataProviderDirectAccessCallbacks structure that specifies the callback functions you implement to handle the data provider’s basic memory management. For a complete description, see CGDataProviderDirectAccessCallbacks.

Return Value

A new data provider. You are responsible for releasing this object using CGDataProviderRelease.

Discussion

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

Availability
  • Available in OS X v10.0 through OS X v10.7.
  • Deprecated in OS X v10.5.
Declared In
CGDataProvider.h