def submit(self, buf, *, checked=False):
TDL = buf['<STR_LIT>']<EOL>RCVBT = buf['<STR_LIT>']<EOL>index = buf['<STR_LIT:index>']<EOL>header = buf['<STR_LIT>']<EOL>datagram = buf['<STR_LIT>']<EOL>start = <NUM_LIT:0><EOL>stop = (TDL + <NUM_LIT:7>) // <NUM_LIT:8><EOL>flag = checked or (TDL and all(RCVBT[start:stop]))<EOL>if not flag and self._strflg:<EOL><INDENT>data = list()<EOL>byte = bytearray()<EOL>for (bctr, bit) in enumerate(RCVBT):<EOL><INDENT>if bit:     <EOL><INDENT>this = bctr * <NUM_LIT:8><EOL>that = this + <NUM_LIT:8><EOL>byte += datagram[this:that]<EOL><DEDENT>else:       <EOL><INDENT>if byte:    <EOL><INDENT>data.append(bytes(byte))<EOL><DEDENT>byte = bytearray()<EOL><DEDENT><DEDENT>if data or header:<EOL><INDENT>packet = Info(<EOL>NotImplemented=True,<EOL>index=tuple(index),<EOL>header=header or None,<EOL>payload=tuple(data) or None,<EOL>)<EOL><DEDENT><DEDENT>else:<EOL><INDENT>payload = datagram[:TDL]<EOL>packet = Info(<EOL>NotImplemented=False,<EOL>index=tuple(index),<EOL>packet=(bytes(header) + bytes(payload)) or None,<EOL>)<EOL><DEDENT>return [packet]<EOL>
Submit reassembled payload.

        Positional arguments:
            * buf -- dict, buffer dict of reassembled packets

        Keyword arguments:
            * bufid -- tuple, buffer identifier

        Returns:
            * list -- reassembled packets