MonobjcMonobjc Documented Class Library
CGDataProviderGetBytesCallback Delegate
NamespacesMonobjc.ApplicationServicesCGDataProviderGetBytesCallback

A callback function that copies from a provider data stream into a Quartz-supplied buffer.

Original signature is : size_t (*CGDataProviderGetBytesCallback) ( void *info, void *buffer, size_t count );

Available in Mac OS X v10.3 and later.

Declaration Syntax
C#Visual BasicVisual C++
public delegate NSUInteger CGDataProviderGetBytesCallback(
	IntPtr info,
	IntPtr buffer,
	NSUInteger count
)
Public Delegate Function CGDataProviderGetBytesCallback ( _
	info As IntPtr, _
	buffer As IntPtr, _
	count As NSUInteger _
) As NSUInteger
public delegate NSUInteger CGDataProviderGetBytesCallback(
	IntPtr info, 
	IntPtr buffer, 
	NSUInteger count
)
Parameters
info (IntPtr)
A generic pointer to private data shared among your callback functions. This is the same pointer you supplied to CGDataProviderCreate.
buffer (IntPtr)
The Quartz-supplied buffer into which you copy the specified number of bytes.
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)

Assembly: Monobjc.AppKit (Module: Monobjc.AppKit)