byang
asked on
little endian/big endian problem
How can I tell if the host is little endian or big endian ? Also, does Java have byte-swap, ntoh(), and hton() functions ?
You shouldn't have to worry about endianness... Java is the same across all platforms..
When using java to talk to non-java however, I just use my friends >>, <<, and &. (bitwise and and shift)
When using java to talk to non-java however, I just use my friends >>, <<, and &. (bitwise and and shift)
ASKER
I have to parse a binary file, so I really need to worry about it. It's for the same reason you call ntoh() and hton() when doing socket programming.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER