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

Method write

python/pyfory/serializer.py:410–412  ·  view source on GitHub ↗
(self, write_context, value: decimal.Decimal)

Source from the content-addressed store, hash-verified

408 self.need_to_write_ref = False
409
410 def write(self, write_context, value: decimal.Decimal):
411 scale, unscaled = _decimal_parts(value)
412 _write_decimal_parts(write_context, scale, unscaled)
413
414 def read(self, read_context):
415 scale, unscaled = _read_decimal_parts(read_context)

Calls 2

_decimal_partsFunction · 0.85
_write_decimal_partsFunction · 0.85