Table of Contents

Class Array

Namespace
GLib.Internal
Assembly
GLib-2.0.dll
public class Array
Inheritance
Array
Inherited Members

Methods

BinarySearch(IntPtr[], IntPtr, CompareFunc, out uint)

Calls native function g_array_binary_search. Version: 2.62

[Version("2.62")]
public static extern bool BinarySearch(IntPtr[] array, IntPtr target, CompareFunc compareFunc, out uint outMatchIndex)

Parameters

array IntPtr[]

Transfer ownership: None Nullable: False

target IntPtr

Transfer ownership: None Nullable: True

compareFunc CompareFunc

Transfer ownership: None Nullable: False

outMatchIndex uint

Transfer ownership: Full Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

Free(IntPtr[], bool)

Calls native function g_array_free.

public static extern NonNullableUtf8StringOwnedHandle Free(IntPtr[] array, bool freeSegment)

Parameters

array IntPtr[]

Transfer ownership: None Nullable: False

freeSegment bool

Transfer ownership: None Nullable: False

Returns

NonNullableUtf8StringOwnedHandle

Transfer ownership: Full Nullable: False

GetElementSize(IntPtr[])

Calls native function g_array_get_element_size. Version: 2.22

[Version("2.22")]
public static extern uint GetElementSize(IntPtr[] array)

Parameters

array IntPtr[]

Transfer ownership: None Nullable: False

Returns

uint

Transfer ownership: None Nullable: False

GetGType()

Calls native function g_array_get_type.

public static extern nuint GetGType()

Returns

nuint

Transfer ownership: None Nullable: False

SetClearFunc(IntPtr[], DestroyNotify)

Calls native function g_array_set_clear_func. Version: 2.32

[Version("2.32")]
public static extern void SetClearFunc(IntPtr[] array, DestroyNotify clearFunc)

Parameters

array IntPtr[]

Transfer ownership: None Nullable: False

clearFunc DestroyNotify

Transfer ownership: None Nullable: False

Sort(IntPtr[], CompareFunc)

Calls native function g_array_sort.

public static extern void Sort(IntPtr[] array, CompareFunc compareFunc)

Parameters

array IntPtr[]

Transfer ownership: None Nullable: False

compareFunc CompareFunc

Transfer ownership: None Nullable: False

SortWithData(IntPtr[], CompareDataFunc, IntPtr)

Calls native function g_array_sort_with_data.

public static extern void SortWithData(IntPtr[] array, CompareDataFunc compareFunc, IntPtr userData)

Parameters

array IntPtr[]

Transfer ownership: None Nullable: False

compareFunc CompareDataFunc

Transfer ownership: None Nullable: False

userData IntPtr

Transfer ownership: None Nullable: True

Steal(IntPtr[], out nuint)

Calls native function g_array_steal. Version: 2.64

[Version("2.64")]
public static extern IntPtr Steal(IntPtr[] array, out nuint len)

Parameters

array IntPtr[]

Transfer ownership: None Nullable: False

len nuint

Transfer ownership: Full Nullable: False

Returns

IntPtr

Transfer ownership: Full Nullable: True

Unref(IntPtr[])

Calls native function g_array_unref. Version: 2.22

[Version("2.22")]
public static extern void Unref(IntPtr[] array)

Parameters

array IntPtr[]

Transfer ownership: None Nullable: False