Bytes.compare

Compares the two #GBytes values.

This function can be used to sort GBytes instances in lexographical order.

class Bytes
int
compare

Parameters

bytes2 Bytes

a pointer to a #GBytes to compare with @bytes1

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

Meta

Since

2.32