CGDataProvider Constructors

Definition

Overloads

CGDataProvider(NSData)

Creates a new CGDataProvider from the provided data.

CGDataProvider(NSUrl)

Creates a new CGDataProvider from the data at the specified url.

CGDataProvider(Byte[])

Creates a new CGDataProvider from the data in the provided buffer.

CGDataProvider(IntPtr)
CGDataProvider(String)

Exposes the contents of the file as a CGDataProvider.

CGDataProvider(IntPtr, Int32)

Creates a CGDataProvider from an in-memory block.

CGDataProvider(Byte[], Int32, Int32)

Creates a CGDataProvider that exposes the byte array starting at the specified offset for the specified amount of bytes.

CGDataProvider(IntPtr, Int32, Action<IntPtr>)

Creates a new CGDataProvider from the data at the specified memoryBlock.

CGDataProvider(IntPtr, Int32, Boolean)

Creates a CGDataProvider from an in-memory block.

CGDataProvider(NSData)

Creates a new CGDataProvider from the provided data.

public CGDataProvider (Foundation.NSData data);

Parameters

data
NSData

Applies to

CGDataProvider(NSUrl)

Creates a new CGDataProvider from the data at the specified url.

public CGDataProvider (Foundation.NSUrl url);

Parameters

url
NSUrl

Applies to

CGDataProvider(Byte[])

Creates a new CGDataProvider from the data in the provided buffer.

public CGDataProvider (byte[] buffer);

Parameters

buffer
Byte[]

Applies to

CGDataProvider(IntPtr)

public CGDataProvider (IntPtr handle);

Parameters

handle
IntPtr

Applies to

CGDataProvider(String)

Exposes the contents of the file as a CGDataProvider.

public CGDataProvider (string file);

Parameters

file
String

The file to load data from.

Applies to

CGDataProvider(IntPtr, Int32)

Creates a CGDataProvider from an in-memory block.

public CGDataProvider (IntPtr memoryBlock, int size);

Parameters

memoryBlock
IntPtr

Pointer to the memory block.

size
Int32

Size of the block.

Applies to

CGDataProvider(Byte[], Int32, Int32)

Creates a CGDataProvider that exposes the byte array starting at the specified offset for the specified amount of bytes.

public CGDataProvider (byte[] buffer, int offset, int count);

Parameters

buffer
Byte[]

A block of bytes that contains the data to be provided.

offset
Int32

Offset into the block that is considered part of the data to be provided.

count
Int32

The number of bytes to consume from the offset start from the block.

Applies to

CGDataProvider(IntPtr, Int32, Action<IntPtr>)

Creates a new CGDataProvider from the data at the specified memoryBlock.

public CGDataProvider (IntPtr memoryBlock, int size, Action<IntPtr> releaseMemoryBlockCallback);

Parameters

memoryBlock
IntPtr
size
Int32
releaseMemoryBlockCallback

Action<IntPtr>

Applies to

CGDataProvider(IntPtr, Int32, Boolean)

Creates a CGDataProvider from an in-memory block.

public CGDataProvider (IntPtr memoryBlock, int size, bool ownBuffer);

Parameters

memoryBlock
IntPtr

Pointer to the memory block.

size
Int32

Size of the block.

ownBuffer
Boolean

If true this means that the CGDataProvider owns the buffer and will call FreeHGlobal when it is disposed, otherwise it is assumed that the block is owned by another object.

Applies to