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

Method read

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

Source from the content-addressed store, hash-verified

553 write_context.write_no_ref(step)
554
555 def read(self, read_context):
556 buffer = read_context.buffer
557 if buffer.read_int8() == NULL_FLAG:
558 start = None
559 else:
560 start = read_context.read_no_ref()
561 if buffer.read_int8() == NULL_FLAG:
562 stop = None
563 else:
564 stop = read_context.read_no_ref()
565 if buffer.read_int8() == NULL_FLAG:
566 step = None
567 else:
568 step = read_context.read_no_ref()
569 return slice(start, stop, step)

Callers

nothing calls this directly

Calls 2

read_no_refMethod · 0.80
read_int8Method · 0.45

Tested by

no test coverage detected