module AMF::Pure::IOHelperBase

Public Instance Methods

byte_order() click to toggle source
   # File lib/amf/pure/helpers/io_helper_base.rb
 5 def byte_order
 6   if [0x12345678].pack('L') == "\x12\x34\x56\x78"
 7     :BigEndian
 8   else
 9     :LittleEndian
10   end
11 end
byte_order_little?() click to toggle source
   # File lib/amf/pure/helpers/io_helper_base.rb
13 def byte_order_little?
14   byte_order == :LittleEndian
15 end