Class PtrArray
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
IntPtrTransfer ownership: None Nullable: False
data
IntPtrTransfer 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
IntPtrTransfer ownership: None Nullable: False
array
IntPtrTransfer ownership: None Nullable: False
func
CopyFuncTransfer ownership: None Nullable: True
userData
IntPtrTransfer 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
IntPtrTransfer ownership: None Nullable: False
array
IntPtrTransfer 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
IntPtrTransfer ownership: None Nullable: False
needle
IntPtrTransfer ownership: None Nullable: True
index
uintTransfer 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
IntPtrTransfer ownership: None Nullable: False
needle
IntPtrTransfer ownership: None Nullable: True
equalFunc
EqualFuncTransfer ownership: None Nullable: True
index
uintTransfer 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
IntPtrTransfer ownership: None Nullable: False
func
FuncTransfer ownership: None Nullable: False
userData
IntPtrTransfer 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
IntPtrTransfer ownership: None Nullable: False
freeSeg
boolTransfer 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
IntPtrTransfer ownership: None Nullable: False
index
intTransfer ownership: None Nullable: False
data
IntPtrTransfer 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
IntPtrTransfer 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
IntPtrTransfer ownership: None Nullable: False
data
IntPtrTransfer 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
IntPtrTransfer ownership: None Nullable: False
data
IntPtrTransfer 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
IntPtrTransfer ownership: None Nullable: False
index
uintTransfer 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
IntPtrTransfer ownership: None Nullable: False
index
uintTransfer 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
IntPtrTransfer ownership: None Nullable: False
elementFreeFunc
DestroyNotifyTransfer 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
IntPtrTransfer ownership: None Nullable: False
length
intTransfer 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
IntPtrTransfer ownership: None Nullable: False
compareFunc
CompareFuncTransfer 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
IntPtrTransfer ownership: None Nullable: False
compareFunc
CompareFuncTransfer 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
IntPtrTransfer ownership: None Nullable: False
compareFunc
CompareDataFuncTransfer ownership: None Nullable: False
userData
IntPtrTransfer 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
IntPtrTransfer ownership: None Nullable: False
compareFunc
CompareDataFuncTransfer ownership: None Nullable: False
userData
IntPtrTransfer 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
IntPtrTransfer ownership: None Nullable: False
len
nuintTransfer 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
IntPtrTransfer ownership: None Nullable: False
index
uintTransfer 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
IntPtrTransfer ownership: None Nullable: False
index
uintTransfer 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
IntPtrTransfer ownership: None Nullable: False