Table of Contents

Class PtrArray

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

Methods

Add(IntPtr, IntPtr)

Calls native function g_ptr_array_add.

public static extern void Add(IntPtr array, IntPtr data)

Parameters

array IntPtr

Transfer ownership: None Nullable: False

data IntPtr

Transfer ownership: None Nullable: True

Extend(IntPtr, IntPtr, CopyFunc, IntPtr)

Calls native function g_ptr_array_extend. Version: 2.62

[Version("2.62")]
public static extern void Extend(IntPtr arrayToExtend, IntPtr array, CopyFunc func, IntPtr userData)

Parameters

arrayToExtend IntPtr

Transfer ownership: None Nullable: False

array IntPtr

Transfer ownership: None Nullable: False

func CopyFunc

Transfer ownership: None Nullable: True

userData IntPtr

Transfer ownership: None Nullable: True

ExtendAndSteal(IntPtr, IntPtr)

Calls native function g_ptr_array_extend_and_steal. Version: 2.62

[Version("2.62")]
public static extern void ExtendAndSteal(IntPtr arrayToExtend, IntPtr array)

Parameters

arrayToExtend IntPtr

Transfer ownership: None Nullable: False

array IntPtr

Transfer ownership: Container Nullable: False

Find(IntPtr, IntPtr, out uint)

Calls native function g_ptr_array_find. Version: 2.54

[Version("2.54")]
public static extern bool Find(IntPtr haystack, IntPtr needle, out uint index)

Parameters

haystack IntPtr

Transfer ownership: None Nullable: False

needle IntPtr

Transfer ownership: None Nullable: True

index uint

Transfer ownership: Full Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

FindWithEqualFunc(IntPtr, IntPtr, EqualFunc, out uint)

Calls native function g_ptr_array_find_with_equal_func. Version: 2.54

[Version("2.54")]
public static extern bool FindWithEqualFunc(IntPtr haystack, IntPtr needle, EqualFunc equalFunc, out uint index)

Parameters

haystack IntPtr

Transfer ownership: None Nullable: False

needle IntPtr

Transfer ownership: None Nullable: True

equalFunc EqualFunc

Transfer ownership: None Nullable: True

index uint

Transfer ownership: Full Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

Foreach(IntPtr, Func, IntPtr)

Calls native function g_ptr_array_foreach. Version: 2.4

[Version("2.4")]
public static extern void Foreach(IntPtr array, Func func, IntPtr userData)

Parameters

array IntPtr

Transfer ownership: None Nullable: False

func Func

Transfer ownership: None Nullable: False

userData IntPtr

Transfer ownership: None Nullable: True

Free(IntPtr, bool)

Calls native function g_ptr_array_free.

public static extern IntPtr Free(IntPtr array, bool freeSeg)

Parameters

array IntPtr

Transfer ownership: None Nullable: False

freeSeg bool

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: Full Nullable: True

GetGType()

Calls native function g_ptr_array_get_type.

public static extern nuint GetGType()

Returns

nuint

Transfer ownership: None Nullable: False

Insert(IntPtr, int, IntPtr)

Calls native function g_ptr_array_insert. Version: 2.40

[Version("2.40")]
public static extern void Insert(IntPtr array, int index, IntPtr data)

Parameters

array IntPtr

Transfer ownership: None Nullable: False

index int

Transfer ownership: None Nullable: False

data IntPtr

Transfer ownership: None Nullable: True

IsNullTerminated(IntPtr)

Calls native function g_ptr_array_is_null_terminated. Version: 2.74

[Version("2.74")]
public static extern bool IsNullTerminated(IntPtr array)

Parameters

array IntPtr

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

Remove(IntPtr, IntPtr)

Calls native function g_ptr_array_remove.

public static extern bool Remove(IntPtr array, IntPtr data)

Parameters

array IntPtr

Transfer ownership: None Nullable: False

data IntPtr

Transfer ownership: None Nullable: True

Returns

bool

Transfer ownership: None Nullable: False

RemoveFast(IntPtr, IntPtr)

Calls native function g_ptr_array_remove_fast.

public static extern bool RemoveFast(IntPtr array, IntPtr data)

Parameters

array IntPtr

Transfer ownership: None Nullable: False

data IntPtr

Transfer ownership: None Nullable: True

Returns

bool

Transfer ownership: None Nullable: False

RemoveIndex(IntPtr, uint)

Calls native function g_ptr_array_remove_index.

public static extern IntPtr RemoveIndex(IntPtr array, uint index)

Parameters

array IntPtr

Transfer ownership: None Nullable: False

index uint

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: None Nullable: True

RemoveIndexFast(IntPtr, uint)

Calls native function g_ptr_array_remove_index_fast.

public static extern IntPtr RemoveIndexFast(IntPtr array, uint index)

Parameters

array IntPtr

Transfer ownership: None Nullable: False

index uint

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: None Nullable: True

SetFreeFunc(IntPtr, DestroyNotify)

Calls native function g_ptr_array_set_free_func. Version: 2.22

[Version("2.22")]
public static extern void SetFreeFunc(IntPtr array, DestroyNotify elementFreeFunc)

Parameters

array IntPtr

Transfer ownership: None Nullable: False

elementFreeFunc DestroyNotify

Transfer ownership: None Nullable: True

SetSize(IntPtr, int)

Calls native function g_ptr_array_set_size.

public static extern void SetSize(IntPtr array, int length)

Parameters

array IntPtr

Transfer ownership: None Nullable: False

length int

Transfer ownership: None Nullable: False

Sort(IntPtr, CompareFunc)

Calls native function g_ptr_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

SortValues(IntPtr, CompareFunc)

Calls native function g_ptr_array_sort_values. Version: 2.76

[Version("2.76")]
public static extern void SortValues(IntPtr array, CompareFunc compareFunc)

Parameters

array IntPtr

Transfer ownership: None Nullable: False

compareFunc CompareFunc

Transfer ownership: None Nullable: False

SortValuesWithData(IntPtr, CompareDataFunc, IntPtr)

Calls native function g_ptr_array_sort_values_with_data. Version: 2.76

[Version("2.76")]
public static extern void SortValuesWithData(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

SortWithData(IntPtr, CompareDataFunc, IntPtr)

Calls native function g_ptr_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_ptr_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

StealIndex(IntPtr, uint)

Calls native function g_ptr_array_steal_index. Version: 2.58

[Version("2.58")]
public static extern IntPtr StealIndex(IntPtr array, uint index)

Parameters

array IntPtr

Transfer ownership: None Nullable: False

index uint

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: Full Nullable: True

StealIndexFast(IntPtr, uint)

Calls native function g_ptr_array_steal_index_fast. Version: 2.58

[Version("2.58")]
public static extern IntPtr StealIndexFast(IntPtr array, uint index)

Parameters

array IntPtr

Transfer ownership: None Nullable: False

index uint

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: Full Nullable: True

Unref(IntPtr)

Calls native function g_ptr_array_unref. Version: 2.22

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

Parameters

array IntPtr

Transfer ownership: None Nullable: False