MonobjcMonobjc Documented Class Library
CGDataProviderGetBytesAtOffsetCallback Delegate
NamespacesMonobjc.ApplicationServicesCGDataProviderGetBytesAtOffsetCallback

A callback function that copies data from the provider into a Quartz buffer.

Original signature is : typedef size_t (*CGDataProviderGetBytesAtOffsetCallback) ( void *info, void *buffer, size_t offset, size_t count );

Available in Mac OS X v10.3 and later.

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

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