Sha256: f7ef516811af62fe8e57a95caa175bffc3ba0bf761ecf726aab7fdc7259c440a

Contents?: true

Size: 307 Bytes

Versions: 2

Compression:

Stored size: 307 Bytes

Contents

module RocketAMF
  module Pure
    module IOHelperBase

      def byte_order
        if [0x12345678].pack('L') == "\x12\x34\x56\x78"
          :BigEndian
        else
          :LittleEndian
        end
      end

      def byte_order_little?
        byte_order == :LittleEndian
      end

    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mrpin-rocketamf-2.0.1 lib/rocketamf/pure/helpers/io_helper_base.rb
mrpin-rocketamf-2.0.0 lib/rocketamf/pure/helpers/io_helper_base.rb