MCPcopy Create free account
hub / github.com/apache/fory / _read_case_value

Method _read_case_value

python/pyfory/union.py:123–128  ·  view source on GitHub ↗
(self, read_context, serializer)

Source from the content-addressed store, hash-verified

121 return self._build_union(case_id, value)
122
123 def _read_case_value(self, read_context, serializer):
124 read_context.increase_depth()
125 try:
126 return serializer.read(read_context)
127 finally:
128 read_context.decrease_depth()
129
130 def _get_case_type_info(self, case_id: int):
131 typeinfo = self._case_type_infos.get(case_id)

Callers 1

readMethod · 0.95

Calls 3

readMethod · 0.65
increase_depthMethod · 0.45
decrease_depthMethod · 0.45

Tested by

no test coverage detected