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

Method write

python/pyfory/serializer.py:1643–1648  ·  view source on GitHub ↗
(self, write_context, value)

Source from the content-addressed store, hash-verified

1641 self._use_default_policy = type_resolver.policy is DEFAULT_POLICY
1642
1643 def write(self, write_context, value):
1644 instance = value.__self__
1645 method_name = value.__func__.__name__
1646
1647 write_context.write_ref(instance)
1648 write_context.write_string(method_name)
1649
1650 def read(self, read_context):
1651 _authorize_callable_materialization(read_context.policy, self.cls)

Callers

nothing calls this directly

Calls 2

write_refMethod · 0.80
write_stringMethod · 0.45

Tested by

no test coverage detected