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

Method read

python/pyfory/_serializer.py:453–457  ·  view source on GitHub ↗
(self, read_context)

Source from the content-addressed store, hash-verified

451 write_context.write_uint32(nanos)
452
453 def read(self, read_context):
454 seconds = read_context.read_int64()
455 nanos = read_context.read_uint32()
456 ts = seconds + nanos / 1_000_000_000
457 return datetime.datetime.fromtimestamp(ts, tz=datetime.timezone.utc)
458
459
460class DurationSerializer(Serializer):

Callers

nothing calls this directly

Calls 2

read_int64Method · 0.45
read_uint32Method · 0.45

Tested by

no test coverage detected