node/lib/metasm/metasm/exe_format/elf_encode.rb
# sets the value of @name_p, appends @name to strtab if needed
sets the value of @name_p, appends @name to strtab if needed
sets the value of @name_p appends @name to strtab if needed
def make_name_p(elf, strtab)
			s = strtab.kind_of?(EncodedData) ? strtab.data : strtab
			return if name_p and s[@name_p, @name.length+1] == @name+0.chr
			return if @name_p = s.index(@name+0.chr)
			@name_p = strtab.length
			strtab << @name << 0
		end
def make_name_p ( elf , strtab ) s = strtab . kind_of? ( EncodedData ) ? strtab . data : strtab return if name_p and s [ @name_p , @name . length + 1 ] == @name + 0 . chr return if @name_p = s . index ( @name + 0 . chr ) @name_p = strtab . length strtab << @name << 0 end
sets the value of @name_p, appends @name to strtab if needed
sets the value of @name_p appends @name to strtab if needed
elf
strtab