Mac OS 9
CGDataProvider.h File Reference

xxx put contents here xxx More...

#include <CGBase.h>
#include <CFURL.h>

Go to the source code of this file.

Data Structures

struct  CGDataProviderCallbacks
 
struct  CGDataProviderDirectAccessCallbacks
 

Typedefs

typedef struct CGDataProvider * CGDataProviderRef
 
typedef void * buffer
 
typedef void size_t count
 
typedef struct CGDataProviderCallbacks CGDataProviderCallbacks
 
typedef const void * pointer
 
typedef void size_t offset
 
typedef struct CGDataProviderDirectAccessCallbacks CGDataProviderDirectAccessCallbacks
 
typedef const void * data
 
typedef const void size_t size
 

Functions

typedef CALLBACK_API_C (size_t, CGGetBytesProcPtr)(void *info
 
typedef CALLBACK_API_C (void, CGSkipBytesProcPtr)(void *info
 
typedef CALLBACK_API_C (void, CGRewindProcPtr)(void *info)
 
typedef CALLBACK_API_C (void, CGReleaseProviderProcPtr)(void *info)
 
typedef CALLBACK_API_C (void *, CGGetBytePointerProcPtr)(void *info)
 
typedef CALLBACK_API_C (void, CGReleaseByteProcPtr)(void *info
 
typedef CALLBACK_API_C (size_t, CGGetBytesDirectProcPtr)(void *info
 
typedef CALLBACK_API_C (void, CGReleaseDataProcPtr)(void *info
 
CGDataProviderRef CGDataProviderCreate (void *info, const CGDataProviderCallbacks *callbacks)
 
CGDataProviderRef CGDataProviderCreateDirectAccess (void *info, size_t size, const CGDataProviderDirectAccessCallbacks *callbacks)
 
CGDataProviderRef CGDataProviderCreateWithData (void *info, const void *data, size_t size, CGReleaseDataProcPtr releaseData)
 
CGDataProviderRef CGDataProviderCreateWithURL (CFURLRef url)
 
CGDataProviderRef CGDataProviderRetain (CGDataProviderRef provider)
 
void CGDataProviderRelease (CGDataProviderRef provider)
 

Detailed Description

xxx put contents here xxx

Introduced In: from CoreGraphics-70.root
Avaliable From: Universal Interfaces 3.4.1
Copyright: © 2000-2001 by Apple Computer, Inc., all rights reserved.

For bug reports, consult the following page on the World Wide Web:

http://developer.apple.com/bugreporter/

Function Documentation

◆ CGDataProviderCreate()

CGDataProviderRef CGDataProviderCreate ( void *  info,
const CGDataProviderCallbacks callbacks 
)

Create a sequential-access data provider using ‘callbacks’ to provide the data. ‘info’ is passed to each of the callback functions. CGDataProviderCreate()

Non-Carbon CFM: not available
Carbon Lib: not available
Mac OS X: in version 10.0 and later

◆ CGDataProviderCreateDirectAccess()

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

Create a direct-access data provider using ‘callbacks’ to supply ‘size’ bytes of data. ‘info’ is passed to each of the callback functions. CGDataProviderCreateDirectAccess()

Non-Carbon CFM: not available
Carbon Lib: not available
Mac OS X: in version 10.0 and later

◆ CGDataProviderCreateWithData()

CGDataProviderRef CGDataProviderCreateWithData ( void *  info,
const void *  data,
size_t  size,
CGReleaseDataProcPtr  releaseData 
)

Create a direct-access data provider using ‘data’, an array of ‘size’ bytes. ‘releaseData’ is called when the data provider is freed, and is passed ‘info’ as its first argument. CGDataProviderCreateWithData()

Non-Carbon CFM: not available
Carbon Lib: not available
Mac OS X: in version 10.0 and later

◆ CGDataProviderCreateWithURL()

CGDataProviderRef CGDataProviderCreateWithURL ( CFURLRef  url)

Create a data provider using ‘url’. CGDataProviderCreateWithURL()

Non-Carbon CFM: not available
Carbon Lib: not available
Mac OS X: in version 10.0 and later

◆ CGDataProviderRelease()

void CGDataProviderRelease ( CGDataProviderRef  provider)

Decrement the retain count of ‘provider’. If the retain count reaches 0, then free ‘provider’ and any associated resources. CGDataProviderRelease()

Non-Carbon CFM: not available
Carbon Lib: not available
Mac OS X: in version 10.0 and later

◆ CGDataProviderRetain()

CGDataProviderRef CGDataProviderRetain ( CGDataProviderRef  provider)

Increment the retain count of ‘provider’ and return it. All data providers are created with an initial retain count of 1. CGDataProviderRetain()

Non-Carbon CFM: not available
Carbon Lib: not available
Mac OS X: in version 10.0 and later