def _pnio_rtc_guess_payload_class(_pkt, _underlayer=None, *args, **kargs):
 config = pnio_get_config(_underlayer)
 if isinstance(config, list):
  cur_index = (- len(_pkt))
  for (index, cls, params) in config:
   if (cur_index == index):
    return cls(_pkt, config=params, *args, **kargs)
  return PNIORealTimeIOxS(_pkt, *args, **kargs)
 else:
  return PNIORealTimeRawData(_pkt, config={'length': len(_pkt)}, *args, **kargs)

def _pnio_rtc_guess_payload_class ( _pkt , _underlayer = None , * args , ** kargs ) : config = pnio_get_config ( _underlayer ) if isinstance ( config , list ) : cur_index = ( - len ( _pkt ) ) for ( index , cls , params ) in config : if ( cur_index == index ) : return cls ( _pkt , config = params , * args , ** kargs ) return PNIORealTimeIOxS ( _pkt , * args , ** kargs ) else : return PNIORealTimeRawData ( _pkt , config = { 'length' : len ( _pkt ) } , * args , ** kargs )
a dispatcher for the packet list field which manage the configuration to fin dthe appropriate class .