node/lib/metasm/samples/dbg-plugins/heapscan/heapscan.rb
# call with a LIST_ENTRY allocstruct, the target structure and LE offset in this structure
call with a LIST_ENTRY allocstruct, the target structure and LE offset in this structure
call with a LIST_ENTRY allocstruct the target structure and LE offset in this structure
def each_listentry(le, st, off=0)
		ptr0 = le.stroff
		ptr = le.flink
		while ptr != ptr0
			yield @cp.decode_c_struct(st, @dbg.memory, ptr-off)
			ptr = @cp.decode_c_struct('_LIST_ENTRY', @dbg.memory, ptr).flink
		end
	end
def each_listentry ( le , st , off = 0 ) ptr0 = le . stroff ptr = le . flink while ptr != ptr0 yield @cp . decode_c_struct ( st , @dbg . memory , ptr - off ) ptr = @cp . decode_c_struct ( '_LIST_ENTRY' , @dbg . memory , ptr ) . flink end end
call with a LIST_ENTRY allocstruct, the target structure and LE offset in this structure
call with a LIST_ENTRY allocstruct the target structure and LE offset in this structure
le
st
off