Table of Contents

Struct CoreGraphics.CGDataProviderRef

Namespace
Xui.Runtime.MacOS
Assembly
Xui.Runtime.MacOS.dll
public ref struct CoreGraphics.CGDataProviderRef : IDisposable
Implements
Inherited Members

Constructors

CGDataProviderRef(nint)

public CGDataProviderRef(nint self)

Parameters

self nint

Fields

Self

public readonly nint Self

Field Value

nint

Methods

CreateWithData(nint, nuint, nint)

Creates a data provider from a raw memory buffer. The buffer must remain valid for the lifetime of the provider. Use releaseCallback to free the buffer when the provider is destroyed.

public static CoreGraphics.CGDataProviderRef CreateWithData(nint data, nuint size, nint releaseCallback = 0)

Parameters

data nint
size nuint
releaseCallback nint

Returns

CoreGraphics.CGDataProviderRef

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

Operators

implicit operator nint(CGDataProviderRef)

public static implicit operator nint(CoreGraphics.CGDataProviderRef r)

Parameters

r CoreGraphics.CGDataProviderRef

Returns

nint