A callback function that copies data from the provider into a Quartz buffer.
Original signature is : typedef size_t (*CGDataProviderGetBytesAtPositionCallback) ( void *info, void *buffer, off_t position, size_t count );
Available in Mac OS X v10.5 and later.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public delegate NSUInteger CGDataProviderGetBytesAtPositionCallback( IntPtr info, IntPtr buffer, NSUInteger position, NSUInteger count )
Public Delegate Function CGDataProviderGetBytesAtPositionCallback ( _ info As IntPtr, _ buffer As IntPtr, _ position As NSUInteger, _ count As NSUInteger _ ) As NSUInteger
public delegate NSUInteger CGDataProviderGetBytesAtPositionCallback( IntPtr info, IntPtr buffer, NSUInteger position, NSUInteger count )
Parameters
- info (IntPtr)
- A generic pointer to private data shared among your callback functions. This is the same pointer you supplied to CGDataProviderCreateDirect.
- buffer (IntPtr)
- The Quartz-supplied buffer into which you copy the specified number of bytes.
- position (NSUInteger)
- Specifies the relative location in the data provider at which to begin copying data.
- count (NSUInteger)
- The number of bytes to copy.
Return Value
The number of bytes copied. If no more data can be written to the buffer, you should return 0.
Version Information
- Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)