module Exif::Utils::Decode::Motorola
Public Instance Methods
byte_order()
click to toggle source
# File lib/exifparser/utils.rb, line 21 def byte_order :motorola end
decode_slong(str)
click to toggle source
# File lib/exifparser/utils.rb, line 41 def decode_slong(str) str[0,4].unpack('N').pack('l').unpack('l').first end
decode_sshort(str)
click to toggle source
# File lib/exifparser/utils.rb, line 37 def decode_sshort(str) str[0,2].unpack('n').pack('s').unpack('s').first end
decode_ubytes(str)
click to toggle source
# File lib/exifparser/utils.rb, line 25 def decode_ubytes(str) str.unpack('C*') end
decode_ulong(str)
click to toggle source
# File lib/exifparser/utils.rb, line 33 def decode_ulong(str) str[0,4].unpack('N').first end
decode_ushort(str)
click to toggle source
# File lib/exifparser/utils.rb, line 29 def decode_ushort(str) str[0,2].unpack('n').first end
parseTagID(str)
click to toggle source
# File lib/exifparser/utils.rb, line 45 def parseTagID(str) sprintf("0x%02x%02x", *(str.unpack("C*"))) end