node/lib/metasm/metasm/debug.rb
def pattern_scan(pat, start=0, len=@memory.length-start, &b)
		ret = []
		mappings.each { |maddr, mlen, perm, *o_|
			next if perm !~ /r/i
			mlen -= start-maddr if maddr < start
			maddr = start if maddr < start
			mlen = start+len-maddr if maddr+mlen > start+len
			next if mlen <= 0
			EncodedData.new(read_mapped_range(maddr, mlen)).pattern_scan(pat) { |off|
				off += maddr
				ret << off if not b or b.call(off)
			}
		}
		ret
	end
# see EData#pattern_scan
# scans only mapped areas of @memory, using os_process.mappings
see EData#pattern_scan
scans only mapped areas of @memory, using os_process.mappings
see EData#pattern_scan scans only mapped areas of @memory using os_process . mappings
def pattern_scan(pat, start=0, len=@memory.length-start, &b)
		ret = []
		mappings.each { |maddr, mlen, perm, *o_|
			next if perm !~ /r/i
			mlen -= start-maddr if maddr < start
			maddr = start if maddr < start
			mlen = start+len-maddr if maddr+mlen > start+len
			next if mlen <= 0
			EncodedData.new(read_mapped_range(maddr, mlen)).pattern_scan(pat) { |off|
				off += maddr
				ret << off if not b or b.call(off)
			}
		}
		ret
	end
def pattern_scan ( pat , start = 0 , len = @memory . length - start , & b ) ret = [ ] mappings . each { | maddr , mlen , perm , * o_ | next if perm !~ / r /i mlen -= start - maddr if maddr < start maddr = start if maddr < start mlen = start + len - maddr if maddr + mlen > start + len next if mlen <= 0 EncodedData . new ( read_mapped_range ( maddr , mlen ) ) . pattern_scan ( pat ) { | off | off += maddr ret << off if not b or b . call ( off ) } } ret end
see EData#pattern_scan
scans only mapped areas of @memory, using os_process.mappings
see EData#pattern_scan scans only mapped areas of @memory using os_process . mappings
pat
start
len
length
b