Class ByteArray
public class ByteArray
- Inheritance
-
ByteArray
- Inherited Members
Methods
Free(byte[], bool)
Calls native function g_byte_array_free.
public static extern nint Free(byte[] array, bool freeSegment)
Parameters
array
byte[]Transfer ownership: None Nullable: False
freeSegment
boolTransfer ownership: None Nullable: False
Returns
- nint
Transfer ownership: None Nullable: False
FreeToBytes(byte[])
Calls native function g_byte_array_free_to_bytes. Version: 2.32
[Version("2.32")]
public static extern BytesOwnedHandle FreeToBytes(byte[] array)
Parameters
array
byte[]Transfer ownership: Full Nullable: False
Returns
- BytesOwnedHandle
Transfer ownership: Full Nullable: False
GetGType()
Calls native function g_byte_array_get_type.
public static extern nuint GetGType()
Returns
- nuint
Transfer ownership: None Nullable: False
Sort(byte[], CompareFunc)
Calls native function g_byte_array_sort.
public static extern void Sort(byte[] array, CompareFunc compareFunc)
Parameters
array
byte[]Transfer ownership: None Nullable: False
compareFunc
CompareFuncTransfer ownership: None Nullable: False
SortWithData(byte[], CompareDataFunc, nint)
Calls native function g_byte_array_sort_with_data.
public static extern void SortWithData(byte[] array, CompareDataFunc compareFunc, nint userData)
Parameters
array
byte[]Transfer ownership: None Nullable: False
compareFunc
CompareDataFuncTransfer ownership: None Nullable: False
userData
nintTransfer ownership: None Nullable: True
Steal(byte[], out nuint)
Calls native function g_byte_array_steal. Version: 2.64
[Version("2.64")]
public static extern nint Steal(byte[] array, out nuint len)
Parameters
array
byte[]Transfer ownership: None Nullable: False
len
nuintTransfer ownership: Full Nullable: False
Returns
- nint
Transfer ownership: Full Nullable: False
Unref(byte[])
Calls native function g_byte_array_unref. Version: 2.22
[Version("2.22")]
public static extern void Unref(byte[] array)
Parameters
array
byte[]Transfer ownership: None Nullable: False