Module: AMQ::Hacks
- Defined in:
- lib/amq/hacks.rb
Constant Summary collapse
- BIG_ENDIAN =
([1].pack("s") == "\x00\x01")
- Q =
"Q".freeze
Class Method Summary collapse
Class Method Details
.pack_64_big_endian(long_long) ⇒ Object
11 12 13 |
# File 'lib/amq/hacks.rb', line 11 def self.pack_64_big_endian(long_long) [long_long].pack(Q) end |
.unpack_64_big_endian(data) ⇒ Object
15 16 17 |
# File 'lib/amq/hacks.rb', line 15 def self.unpack_64_big_endian(data) data.unpack(Q) end |