def int_list(pages, size):
 if (address_size == 4):
  fmt = '<L'
 else:
  fmt = '<Q'
 for page in pages:
  curr = 0
  while ((curr < 4096) and (curr < size)):
   (yield struct.unpack(fmt, page[curr:(curr + address_size)])[0])
   curr += address_size

def int_list ( pages , size ) : if ( address_size == 4 ) : fmt = '<L' else : fmt = '<Q' for page in pages : curr = 0 while ( ( curr < 4096 ) and ( curr < size ) ) : ( yield struct . unpack ( fmt , page [ curr : ( curr + address_size ) ] ) [ 0 ] ) curr += address_size
split a range into integers .