def _prepareForPayloadConsumption(self):
        """
        Sets up variables necessary for consuming the payload of a netstring.
        """
        self._state = self._PARSING_PAYLOAD
        self._currentPayloadSize = 0
        self._payload.seek(0)
        self._payload.truncate()

        Sets up variables necessary for consuming the payload of a netstring.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/protocols/basic.py