T
Tim Pease
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
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