node/lib/metasm/metasm/exe_format/coff_decode.rb
def decode_symbols
		endptr = @encoded.ptr = @header.ptr_sym + 18*@header.num_sym
		strlen = decode_word
		@encoded.ptr = endptr
		strtab = @encoded.read(strlen)
		@encoded.ptr = @header.ptr_sym
		@symbols = []
		@header.num_sym.times {
			break if @encoded.ptr >= endptr or @encoded.ptr >= @encoded.length
			@symbols << Symbol.decode(self, strtab)
			# keep the reloc.sym_idx accurate
			@symbols.last.nr_aux.times { @symbols << nil }
		}
	end
# decode the COFF symbol table (obj only)
decode the COFF symbol table (obj only)
decode the COFF symbol table ( obj only )
def decode_symbols
		endptr = @encoded.ptr = @header.ptr_sym + 18*@header.num_sym
		strlen = decode_word
		@encoded.ptr = endptr
		strtab = @encoded.read(strlen)
		@encoded.ptr = @header.ptr_sym
		@symbols = []
		@header.num_sym.times {
			break if @encoded.ptr >= endptr or @encoded.ptr >= @encoded.length
			@symbols << Symbol.decode(self, strtab)
			@symbols.last.nr_aux.times { @symbols << nil }
		}
	end
def decode_symbols endptr = @encoded . ptr = @header . ptr_sym + 18 * @header . num_sym strlen = decode_word @encoded . ptr = endptr strtab = @encoded . read ( strlen ) @encoded . ptr = @header . ptr_sym @symbols = [ ] @header . num_sym . times { break if @encoded . ptr >= endptr or @encoded . ptr >= @encoded . length @symbols << Symbol . decode ( self , strtab ) @symbols . last . nr_aux . times { @symbols << nil } } end
decode the COFF symbol table (obj only)
decode the COFF symbol table ( obj only )
# keep the reloc.sym_idx accurate