Function

GLibByteArraysort_with_data

Declaration

void
g_byte_array_sort_with_data (
  GByteArray* array,
  GCompareDataFunc compare_func,
  gpointer user_data
)

Description

Like g_byte_array_sort(), but the comparison function takes an extra user data argument.

Parameters

array

Type: An array of guint8

A GByteArray.

The data is owned by the caller of the function.
compare_func

Type: GCompareDataFunc

Comparison function.

user_data

Type: gpointer

Data to pass to compare_func.

The argument can be NULL.
The data is owned by the caller of the function.