def read_cz_lsm_event_list(fh):
 count = struct.unpack('<II', fh.read(8))[1]
 events = []
 while (count > 0):
  (esize, etime, etype) = struct.unpack('<IdI', fh.read(16))
  etext = stripnull(fh.read((esize - 16)))
  events.append((etime, etype, etext))
  count -= 1
 return events

def read_cz_lsm_event_list ( fh ) : count = struct . unpack ( '<II' , fh . read ( 8 ) ) [ 1 ] events = [ ] while ( count > 0 ) : ( esize , etime , etype ) = struct . unpack ( '<IdI' , fh . read ( 16 ) ) etext = stripnull ( fh . read ( ( esize - 16 ) ) ) events . append ( ( etime , etype , etext ) ) count -= 1 return events
read lsm events from file and return as list of .