Table of Contents

Class ByteArray

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

Methods

Free(byte[], bool)

Calls native function g_byte_array_free.

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

Parameters

array byte[]

Transfer ownership: None Nullable: False

freeSegment bool

Transfer ownership: None Nullable: False

Returns

IntPtr

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 CompareFunc

Transfer ownership: None Nullable: False

SortWithData(byte[], CompareDataFunc, IntPtr)

Calls native function g_byte_array_sort_with_data.

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

Parameters

array byte[]

Transfer ownership: None Nullable: False

compareFunc CompareDataFunc

Transfer ownership: None Nullable: False

userData IntPtr

Transfer ownership: None Nullable: True

Steal(byte[], out nuint)

Calls native function g_byte_array_steal. Version: 2.64

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

Parameters

array byte[]

Transfer ownership: None Nullable: False

len nuint

Transfer ownership: Full Nullable: False

Returns

IntPtr

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