MCPcopy Index your code
hub / github.com/apache/fory / write

Method write

python/pyfory/tests/test_cross_language.py:616–619  ·  view source on GitHub ↗
(self, write_context, value)

Source from the content-addressed store, hash-verified

614
615class ComplexObject1Serializer(pyfory.serializer.Serializer):
616 def write(self, write_context, value):
617 write_context.write_ref(value.f1)
618 write_context.write_ref(value.f2)
619 write_context.write_ref(value.f3)
620
621 def read(self, read_context):
622 obj = ComplexObject1(*([None] * len(typing.get_type_hints(ComplexObject1).keys())))

Callers

nothing calls this directly

Calls 1

write_refMethod · 0.80

Tested by

no test coverage detected