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

Method __readSize

lib/py/src/protocol/TCompactProtocol.py:332–336  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

330 return fromZigZag(self.__readVarint())
331
332 def __readSize(self):
333 result = self.__readVarint()
334 if result < 0:
335 raise TProtocolException("Length < 0")
336 return result
337
338 def readMessageBegin(self):
339 assert self.state == CLEAR

Callers 3

readCollectionBeginMethod · 0.95
readMapBeginMethod · 0.95
__readBinaryMethod · 0.95

Calls 2

__readVarintMethod · 0.95
TProtocolExceptionClass · 0.70

Tested by

no test coverage detected