MCPcopy Create free account
hub / github.com/apache/thrift / readMessageBegin

Method readMessageBegin

lib/py/src/protocol/TJSONProtocol.py:407–416  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

405class TJSONProtocol(TJSONProtocolBase):
406
407 def readMessageBegin(self):
408 self.resetReadContext()
409 self.readJSONArrayStart()
410 if self.readJSONInteger() != VERSION:
411 raise TProtocolException(TProtocolException.BAD_VERSION,
412 "Message contained bad version.")
413 name = self.readJSONString(False)
414 typen = self.readJSONInteger()
415 seqid = self.readJSONInteger()
416 return (name, typen, seqid)
417
418 def readMessageEnd(self):
419 self.readJSONArrayEnd()

Callers

nothing calls this directly

Calls 5

readJSONArrayStartMethod · 0.95
readJSONIntegerMethod · 0.95
readJSONStringMethod · 0.95
resetReadContextMethod · 0.80
TProtocolExceptionClass · 0.70

Tested by

no test coverage detected