Module: RocketAMF::Pure::IOHelperBase
- Included in:
- IOHelperRead, IOHelperWrite
- Defined in:
- lib/rocketamf/pure/helpers/io_helper_base.rb
Instance Method Summary collapse
Instance Method Details
#byte_order ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/rocketamf/pure/helpers/io_helper_base.rb', line 5 def byte_order if [0x12345678].pack('L') == "\x12\x34\x56\x78" :BigEndian else :LittleEndian end end |
#byte_order_little? ⇒ Boolean
13 14 15 |
# File 'lib/rocketamf/pure/helpers/io_helper_base.rb', line 13 def byte_order_little? byte_order == :LittleEndian end |