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

Method reset

python/pyfory/context.py:272–282  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

270 self.depth = 0
271
272 def reset(self):
273 self.ref_writer.reset()
274 self.meta_string_writer.reset()
275 if self.meta_share_context is not None:
276 self.meta_share_context.reset()
277 if self.context_objects:
278 self.context_objects.clear()
279 self.buffer = None
280 self.buffer_callback = None
281 self.unsupported_callback = None
282 self.depth = 0
283
284 def add_context_object(self, key, obj):
285 self.context_objects[id(key)] = obj

Callers

nothing calls this directly

Calls 2

resetMethod · 0.65
clearMethod · 0.45

Tested by

no test coverage detected