According to:
http://haxe.org/api/haxe/io/bytes
There is a function Bytes.compare that returns an Int. What does this in mean? I tried to compare 2 Bytes object that were equal and I got 0 back. And for 2 different I got -529068432.
So it seems the function returns 0 for equal Bytes and something else otherwise. But just asking, what is the “offical specification”?
It is similar to the compare argument we give to Array.sort. In this case, it kind of returns
where x is the caller, y is the other Bytes.
Just a tip, you can always check the source code (Bytes.compare’s) if something is unclear.