Endianess of date and address formats in Europe and the US

seen from France

seen from India
seen from Japan
seen from United States
seen from United States

seen from China
seen from Japan

seen from Ireland

seen from Ireland
seen from Poland
seen from Sweden
seen from United Kingdom
seen from Germany
seen from Australia
seen from China
seen from Poland

seen from United States

seen from United States
seen from United States
seen from India
Endianess of date and address formats in Europe and the US

Anya is live and ready to show you everything. Watch her strip, dance, and perform exclusive shows just for you. Interact in real-time and make your fantasies come true.
Free to watch โข No registration required โข HD streaming
Bad Byte Swap
Found this unfortunate routine in a code base:
uint32_t byteswap(uint32_t word) { uint8_t* ptr = (uint8_t*)&word; return ((ptr[3] << 24) | (ptr[2] << 16) | (ptr[1] << 8) | (ptr[0])); }
Too bad it only swaps in one direction. If you're already on a big-endian platform, this routine will do nothing! Probably not what you were expecting to happen. A correct routine will swap the byte order regardless of the platform it is running on:
http://www.yolinux.com/TUTORIALS/Endian-Byte-Order.html#SWAP
Endianess
I recently spent 5 hours trying to figure out why my maps I write from an own made "tiled" plugin (Java) aren't beeing read properly in my ninjarun game (C), already knowing all along it must be because of the endianess (But I'm always lazy to mess with the actual bits themselves, so I spent all my time googling for proof, before I actually start reversing byte orders).
Java stores it's stuff as big-endianย whereas c will try to load it as little-endian.
So, how do you cope with this problem? Simplest: Save the file in Java as little-endian. This can be very easily accomplished by using ByteBuffers, and setting using .order(ByteOrder.LITTLE_ENDIAN)
Knowledge - Big Endian & Little Endian
There are two kinds of design architecture for memory storage: Big Endian & Little Endian. Some references are listed as blew:
Microsoft Knowledge Database
Discussion A
Discussion B