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

Method readCollectionBegin

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

Source from the content-addressed store, hash-verified

370 self.state, self.__last_fid = self.__structs.pop()
371
372 def readCollectionBegin(self):
373 assert self.state in (VALUE_READ, CONTAINER_READ), self.state
374 size_type = self.__readUByte()
375 size = size_type >> 4
376 type = self.__getTType(size_type)
377 if size == 15:
378 size = self.__readSize()
379 self._check_container_length(size)
380 self.__containers.append(self.state)
381 self.state = CONTAINER_READ
382 return type, size
383 readSetBegin = readCollectionBegin
384 readListBegin = readCollectionBegin
385

Callers

nothing calls this directly

Calls 5

__readUByteMethod · 0.95
__getTTypeMethod · 0.95
__readSizeMethod · 0.95
appendMethod · 0.45

Tested by

no test coverage detected