def setUpDecode(self, buf): self._rtransport = TTransport.TMemoryBuffer(buf) self._rprotocol = self._protocol_factory.getProtocol(self._rtransport)
def setUpEncode(self): self._wtransport = TTransport.TMemoryBuffer() self._wprotocol = self._protocol_factory.getProtocol(self._wtransport)