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

Method read

python/pyfory/tests/test_serializer.py:672–675  ·  view source on GitHub ↗
(self, read_context)

Source from the content-addressed store, hash-verified

670 write_context.write_int32(value.f1)
671
672 def read(self, read_context):
673 a = A()
674 a.f1 = read_context.read_int32()
675 return a
676
677 fory.register_type(A, serializer=Serializer(fory.type_resolver, RegisterClass))
678 assert fory.deserialize(fory.serialize(RegisterClass(100))).f1 == 100

Callers

nothing calls this directly

Calls 2

AClass · 0.70
read_int32Method · 0.45

Tested by

no test coverage detected