From: Tim Pease Date: 2006-10-25T08:40:25+09:00 Subject: Endianess of the underlying platform Does ruby provide a global or a method call to determine the endianess of the underlying platform? This is what I cooked up, but I'm wondering if there is a ruby way of doing this. BIG_ENDIAN = [0xFF00].pack('S') == [0xFF00].pack('n') Blessings, TwP