Sha256: 351b8d6b8829441e0fc8f1a6735562f60999c8bee98151a282ca2fb595ca1713

Contents?: true

Size: 207 Bytes

Versions: 28

Compression:

Stored size: 207 Bytes

Contents

module GorgonAMQ
  module Endianness
    BIG_ENDIAN = ([1].pack("s") == "\x00\x01")

    def big_endian?
      BIG_ENDIAN
    end

    def little_endian?
      !BIG_ENDIAN
    end

    extend self
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
gorgon-0.11.1 lib/gorgon_amq-protocol/lib/gorgon_amq/endianness.rb
gorgon-0.11.0 lib/gorgon_amq-protocol/lib/gorgon_amq/endianness.rb
gorgon-0.10.5 lib/gorgon_amq-protocol/lib/gorgon_amq/endianness.rb
gorgon-0.10.4 lib/gorgon_amq-protocol/lib/gorgon_amq/endianness.rb
gorgon-0.10.3 lib/gorgon_amq-protocol/lib/gorgon_amq/endianness.rb
gorgon-0.10.2 lib/gorgon_amq-protocol/lib/gorgon_amq/endianness.rb
gorgon-0.10.1 lib/gorgon_amq-protocol/lib/gorgon_amq/endianness.rb
gorgon-0.10.0 lib/gorgon_amq-protocol/lib/gorgon_amq/endianness.rb
gorgon-0.9.0 lib/gorgon_amq-protocol/lib/gorgon_amq/endianness.rb
gorgon-0.8.4 lib/gorgon_amq-protocol/lib/gorgon_amq/endianness.rb
gorgon-0.8.3 lib/gorgon_amq-protocol/lib/gorgon_amq/endianness.rb
gorgon-0.8.2 lib/gorgon_amq-protocol/lib/gorgon_amq/endianness.rb
gorgon-0.8.1 lib/gorgon_amq-protocol/lib/gorgon_amq/endianness.rb
gorgon-0.8.0 lib/gorgon_amq-protocol/lib/gorgon_amq/endianness.rb
gorgon-0.7.1 lib/gorgon_amq-protocol/lib/gorgon_amq/endianness.rb
gorgon-0.7.0 lib/gorgon_amq-protocol/lib/gorgon_amq/endianness.rb
gorgon-0.7.0.rc4 lib/gorgon_amq-protocol/lib/gorgon_amq/endianness.rb
gorgon-0.7.0.rc3 lib/gorgon_amq-protocol/lib/gorgon_amq/endianness.rb
gorgon-0.7.0.rc2 lib/gorgon_amq-protocol/lib/gorgon_amq/endianness.rb
gorgon-0.7.0.rc1 lib/gorgon_amq-protocol/lib/gorgon_amq/endianness.rb