node/lib/metasm/samples/dasm-plugins/match_libsigs.rb
def match_chunk(str)
	count = 0
	off = 0
	while o = (str[off..-1] =~ @giantregex)
		count += 1
		off += o
		sym = matched_findsym(str, off)
		yield off, sym
		off += 1
	end
	count
end
# matches the signatures against a raw string
# yields offset, symname for each match
# returns nr of matches found
matches the signatures against a raw string
yields offset, symname for each match
returns nr of matches found
matches the signatures against a raw string yields offset symname for each match returns nr of matches found
def match_chunk(str)
	count = 0
	off = 0
	while o = (str[off..-1] =~ @giantregex)
		count += 1
		off += o
		sym = matched_findsym(str, off)
		yield off, sym
		off += 1
	end
	count
end
def match_chunk ( str ) count = 0 off = 0 while o = ( str [ off .. - 1 ] =~ @giantregex ) count += 1 off += o sym = matched_findsym ( str , off ) yield off , sym off += 1 end count end
matches the signatures against a raw string
yields offset, symname for each match
returns nr of matches found
matches the signatures against a raw string yields offset symname for each match returns nr of matches found
str