Edit

Share via


Blob Constructors

Definition

Overloads

Blob(IntPtr, Int32, MemoryMode)

Creates a new Blob instance, wrapping the specified data.

Blob(IntPtr, Int32, MemoryMode, ReleaseDelegate)

Creates a new Blob instance, wrapping the specified data.

Blob(IntPtr, UInt32, MemoryMode, Object, BlobReleaseDelegate)
Obsolete.

Creates a new Blob instance, wrapping the specified data.

Blob(IntPtr, Int32, MemoryMode)

Creates a new Blob instance, wrapping the specified data.

public Blob(IntPtr data, int length, HarfBuzzSharp.MemoryMode mode);

Parameters

data
IntPtr

The data to wrap.

length
Int32

The length of the data being wrapped.

mode
MemoryMode

The memory mode to use.

Remarks

If there was a problem creating the blob, or if the data length was zero, then an empty blob will be created.

Applies to

Blob(IntPtr, Int32, MemoryMode, ReleaseDelegate)

Creates a new Blob instance, wrapping the specified data.

public Blob(IntPtr data, int length, HarfBuzzSharp.MemoryMode mode, HarfBuzzSharp.ReleaseDelegate releaseDelegate);

Parameters

data
IntPtr

The data to wrap.

length
Int32

The length of the data being wrapped.

mode
MemoryMode

The memory mode to use.

releaseDelegate
ReleaseDelegate

The delegate to invoke when the data is not needed anymore.

Remarks

If there was a problem creating the blob, or if the data length was zero, then an empty blob will be created.

Applies to

Blob(IntPtr, UInt32, MemoryMode, Object, BlobReleaseDelegate)

Caution

Use Blob(IntPtr, int, MemoryMode, ReleaseDelegate) instead.

Creates a new Blob instance, wrapping the specified data.

public Blob(IntPtr data, uint length, HarfBuzzSharp.MemoryMode mode, object userData, HarfBuzzSharp.BlobReleaseDelegate releaseDelegate);
[System.Obsolete("Use Blob(IntPtr, int, MemoryMode, ReleaseDelegate) instead.")]
public Blob(IntPtr data, uint length, HarfBuzzSharp.MemoryMode mode, object userData, HarfBuzzSharp.BlobReleaseDelegate releaseDelegate);

Parameters

data
IntPtr

The data to wrap.

length
UInt32

The length of the data being wrapped.

mode
MemoryMode

The memory mode to use.

userData
Object

The user data to pass to the release delegate.

releaseDelegate
BlobReleaseDelegate

The delegate to invoke when the data is not needed anymore.

Attributes

Remarks

If there was a problem creating the blob, or if the data length was zero, then an empty blob will be created.

Applies to