MCPcopy Index your code
hub / github.com/pyload/pyload / readContainerSet

Method readContainerSet

module/lib/thrift/protocol/TProtocol.py:259–275  ·  view source on GitHub ↗
(self, spec)

Source from the content-addressed store, hash-verified

257 return results
258
259 def readContainerSet(self, spec):
260 results = set()
261 ttype, tspec = spec[0], spec[1]
262 r_handler = self._TTYPE_HANDLERS[ttype][0]
263 reader = getattr(self, r_handler)
264 (set_type, set_len) = self.readSetBegin()
265 if tspec is None:
266 # set members are simple types
267 for idx in xrange(set_len):
268 results.add(reader())
269 else:
270 container_reader = self._TTYPE_HANDLERS[set_type][0]
271 val_reader = getattr(self, container_reader)
272 for idx in xrange(set_len):
273 results.add(val_reader(tspec))
274 self.readSetEnd()
275 return results
276
277 def readContainerStruct(self, spec):
278 (obj_class, obj_spec) = spec

Callers

nothing calls this directly

Calls 3

readSetBeginMethod · 0.95
readSetEndMethod · 0.95
addMethod · 0.45

Tested by

no test coverage detected