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

Method readContainerList

lib/py/src/protocol/TProtocol.py:278–285  ·  view source on GitHub ↗
(self, spec)

Source from the content-addressed store, hash-verified

276 return next(self._read_by_ttype(ttype, spec, spec))
277
278 def readContainerList(self, spec):
279 ttype, tspec, is_immutable = spec
280 (list_type, list_len) = self.readListBegin()
281 # TODO: compare types we just decoded with thrift_spec
282 elems = islice(self._read_by_ttype(ttype, spec, tspec), list_len)
283 results = (tuple if is_immutable else list)(elems)
284 self.readListEnd()
285 return results
286
287 def readContainerSet(self, spec):
288 ttype, tspec, is_immutable = spec

Callers

nothing calls this directly

Calls 3

readListBeginMethod · 0.95
_read_by_ttypeMethod · 0.95
readListEndMethod · 0.95

Tested by

no test coverage detected