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

Method reset

python/pyfory/_fory.py:583–591  ·  view source on GitHub ↗

Reset both write and read state. Clears all per-operation state including buffers and reference tracking. Use this to ensure a clean state before reusing a Fory instance.

(self)

Source from the content-addressed store, hash-verified

581 self.read_context.reset()
582
583 def reset(self):
584 """
585 Reset both write and read state.
586
587 Clears all per-operation state including buffers and reference tracking.
588 Use this to ensure a clean state before reusing a Fory instance.
589 """
590 self.reset_write()
591 self.reset_read()
592
593
594class ThreadSafeFory:

Callers

nothing calls this directly

Calls 2

reset_writeMethod · 0.95
reset_readMethod · 0.95

Tested by

no test coverage detected