class Metasm::COFF::Symbol

COFF relocatable object symbol (table offset found in the Header.ptr_sym)

Attributes

aux[RW]

Public Instance Methods

decode(coff, strtab='') click to toggle source
Calls superclass method Metasm::SerialStruct#decode
# File metasm/exe_format/coff_decode.rb, line 43
def decode(coff, strtab='')
        n0, n1 = coff.decode_word, coff.decode_word
        coff.encoded.ptr -= 8

        super(coff)

        if n0 == 0 and ne = strtab.index(\0, n1)
                @name = strtab[n1...ne]
        end
        return if @nr_aux == 0

        @aux = []
        @nr_aux.times { @aux << coff.encoded.read(18) }
end