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

Class MyExtSerializer

python/pyfory/tests/xlang_test_main.py:166–173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

164
165
166class MyExtSerializer(pyfory.serializer.Serializer):
167 def write(self, write_context, value):
168 write_context.write_varint32(value.id)
169
170 def read(self, read_context):
171 obj = MyExt()
172 obj.id = read_context.read_varint32()
173 return obj
174
175
176@dataclass

Callers 3

test_skip_id_customFunction · 0.70
test_skip_name_customFunction · 0.70
test_consistent_namedFunction · 0.70

Calls

no outgoing calls

Tested by 3

test_skip_id_customFunction · 0.56
test_skip_name_customFunction · 0.56
test_consistent_namedFunction · 0.56