, , , , , BytewiseComparator, .
- , . .
long flippedI = htonl(i);
, LevelDB . iPhone4 50 000 , 100 000 / .
, - ByteWiseComparator , . , , .
, 4 , , 4- . , - , . , , . .
int, 1 1 1000, BytewiseComparator
Listing the keys in decimal and hex
256 ( 100)
512 ( 200)
768 ( 300)
1 ( 1)
257 ( 101)
513 ( 201)
769 ( 301)
2 ( 2)
258 ( 102)
514 ( 202)
770 ( 302)
3 ( 3)
259 ( 103)
515 ( 203)
771 ( 303)
...
254 ( fe)
510 ( 1fe)
766 ( 2fe)
255 ( ff)
511 ( 1ff)
767 ( 2ff)