class Metasm::COFFArchive::Member
Attributes
encoded[RW]
offset[RW]
Public Instance Methods
decode(ar)
click to toggle source
Calls superclass method
# File metasm/exe_format/coff_decode.rb, line 832 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
decode_half()
click to toggle source
TODO XXX are those actually used ?
# File metasm/exe_format/coff_decode.rb, line 851 def decode_half ; @encoded.decode_imm(:u16, :big) end
decode_word()
click to toggle source
# File metasm/exe_format/coff_decode.rb, line 852 def decode_word ; @encoded.decode_imm(:u32, :big) end
exe()
click to toggle source
# File metasm/exe_format/coff_decode.rb, line 854 def exe; AutoExe.decode(@encoded) ; end