node/lib/metasm/samples/dbg-plugins/heapscan/heapscan.rb
def scan_chunks
		@chunks = {}
		each_heap { |a, l, ar|
			scan_heap(a, l, ar)
		}
		@mmapchunks = []
		@mmaps.each { |a, l|
			ll = scan_mmap(a, l) || 4096
			a += ll
			l -= ll
		}
	end
# find all chunks in the memory address space
find all chunks in the memory address space
find all chunks in the memory address space
def scan_chunks
		@chunks = {}
		each_heap { |a, l, ar|
			scan_heap(a, l, ar)
		}
		@mmapchunks = []
		@mmaps.each { |a, l|
			ll = scan_mmap(a, l) || 4096
			a += ll
			l -= ll
		}
	end
def scan_chunks @chunks = { } each_heap { | a , l , ar | scan_heap ( a , l , ar ) } @mmapchunks = [ ] @mmaps . each { | a , l | ll = scan_mmap ( a , l ) || 4096 a += ll l -= ll } end
find all chunks in the memory address space
find all chunks in the memory address space