def yield_address(space, start, length=None, reverse=False):
 if (not length):
  length = linux_process_info.address_size
 cont = True
 while (space.is_valid_address(start) and cont):
  try:
   value = read_address(space, start, length)
   (yield value)
  except struct.error:
   cont = False
   (yield None)
  if reverse:
   start -= length
  else:
   start += length

def yield_address ( space , start , length = None , reverse = False ) : if ( not length ) : length = linux_process_info . address_size cont = True while ( space . is_valid_address ( start ) and cont ) : try : value = read_address ( space , start , length ) ( yield value ) except struct . error : cont = False ( yield None ) if reverse : start -= length else : start += length
a function to read a series of values starting at a certain address .