def UnpackLongList(data):
 if ((len(data) > 17) and (data[:8] == '\xff\xff\xff\xff\xff\xff\xff\xff')):
  data = zlib.decompress(data[8:])
 return list(struct.unpack(('<' + ('q' * (len(data) // 8))), data))

def UnpackLongList ( data ) : if ( ( len ( data ) > 17 ) and ( data [ : 8 ] == '\xff\xff\xff\xff\xff\xff\xff\xff' ) ) : data = zlib . decompress ( data [ 8 : ] ) return list ( struct . unpack ( ( '<' + ( 'q' * ( len ( data ) // 8 ) ) ) , data ) )
unpack a list of longs previously packed using packlonglist .