# File metasm/exe_format/coff_decode.rb, line 834 def decode(ar) @offset = ar.encoded.ptr super(ar) raise 'bad member header' + self.inspect if @eoh != "`\n" @name.strip! @date = @date.to_i @uid = @uid.to_i @gid = @gid.to_i @mode = @mode.to_i(8) @size = @size.to_i @encoded = ar.encoded[ar.encoded.ptr, @size] ar.encoded.ptr += @size ar.encoded.ptr += 1 if @size & 1 == 1 end
TODO XXX are those actually used ?
# File metasm/exe_format/coff_decode.rb, line 853 def decode_half ; @encoded.decode_imm(:u16, :big) end
# File metasm/exe_format/coff_decode.rb, line 854 def decode_word ; @encoded.decode_imm(:u32, :big) end
# File metasm/exe_format/coff_decode.rb, line 856 def exe; AutoExe.decode(@encoded) ; end