Mac OS 9
CGDataProviderCallbacks Struct Reference

#include <CGDataProvider.h>

Data Fields

CGGetBytesProcPtr getBytes
 
CGSkipBytesProcPtr skipBytes
 
CGRewindProcPtr rewind
 
CGReleaseProviderProcPtr releaseProvider
 

Detailed Description

Callbacks for sequentially accessing data. ‘getBytes’ is called to copy ‘count’ bytes from the provider's data to ‘buffer’. It should return the number of bytes copied, or 0 if there's no more data. ‘skipBytes’ is called to skip ahead in the provider's data by ‘count’ bytes. ‘rewind’ is called to rewind the provider to the beginning of the data. ‘releaseProvider’, if non-NULL, is called when the provider is freed.


The documentation for this struct was generated from the following file: