compare


Description:

public int compare (Bytes bytes2)

Compares the two Bytes values.

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

Parameters:

this

a pointer to a Bytes

bytes2

a pointer to a Bytes to compare with this

Returns:

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