module Exif::Utils::Decode::Intel
Public Instance Methods
byte_order()
click to toggle source
# File lib/exifparser/utils.rb, line 54 def byte_order :intel end
decode_slong(str)
click to toggle source
# File lib/exifparser/utils.rb, line 74 def decode_slong(str) str[0,4].unpack('l').first end
decode_sshort(str)
click to toggle source
# File lib/exifparser/utils.rb, line 70 def decode_sshort(str) str[0,2].unpack('s').first end
decode_ubytes(str)
click to toggle source
# File lib/exifparser/utils.rb, line 58 def decode_ubytes(str) str.unpack('C*') end
decode_ulong(str)
click to toggle source
# File lib/exifparser/utils.rb, line 66 def decode_ulong(str) str[0,4].unpack('V').first end
decode_ushort(str)
click to toggle source
# File lib/exifparser/utils.rb, line 62 def decode_ushort(str) str[0,2].unpack('v').first end
parseTagID(str)
click to toggle source
# File lib/exifparser/utils.rb, line 78 def parseTagID(str) "0x" + str.unpack("C*").reverse.collect{ |e| sprintf("%02x", e) }.join("") end