Bytes.compare

Compares the two GBytes values. This function can be used to sort GBytes instances in lexographical order. Since 2.32

class Bytes
static
int
compare
(
void* bytes1
,
void* bytes2
)

Parameters

bytes1 void*

a pointer to a GBytes. [type GLib.Bytes]

bytes2 void*

a pointer to a GBytes to compare with bytes1. [type GLib.Bytes]

Return Value

Type: int

a negative value if bytes2 is lesser, a positive value if bytes2 is greater, and zero if bytes2 is equal to bytes1

Meta