code: def submit(self, buf, *, checked=False):
          
          TDL = buf['TDL']
          RCVBT = buf['RCVBT']
          index = buf['index']
          header = buf['header']
          datagram = buf['datagram']
  
          start = 0
          stop = (TDL + 7) // 8
          flag = checked or (TDL and all(RCVBT[start:stop]))
          # if datagram is not implemented
          if not flag and self._strflg:
              data = list()
              byte = bytearray()
              # extract received payload
              for (bctr, bit) in enumerate(RCVBT):
                  if bit:     # received bit
                      this = bctr * 8
                      that = this + 8
                      byte += datagram[this:that]
                  else:       # missing bit
                      if byte:    # strip empty payload
                          data.append(bytes(byte))
                      byte = bytearray()
              # strip empty packets
              if data or header:
                  packet = Info(
                      NotImplemented=True,
                      index=tuple(index),
                      header=header or None,
                      payload=tuple(data) or None,
                  )
          # if datagram is reassembled in whole
          else:
              payload = datagram[:TDL]
              packet = Info(
                  NotImplemented=False,
                  index=tuple(index),
                  packet=(bytes(header) + bytes(payload)) or None,
              )
          return [packet]
docs: Submit reassembled payload.
  
          Positional arguments:
              * buf -- dict, buffer dict of reassembled packets
  
          Keyword arguments:
              * bufid -- tuple, buffer identifier
  
          Returns:
              * list -- reassembled packets