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

Method read

python/pyfory/serializer.py:461–476  ·  view source on GitHub ↗
(self, read_context)

Source from the content-addressed store, hash-verified

459 write_context.write_ref(value.name)
460
461 def read(self, read_context):
462 if read_context.read_int8() == NULL_FLAG:
463 start = None
464 else:
465 start = read_context.read_no_ref()
466 if read_context.read_int8() == NULL_FLAG:
467 stop = None
468 else:
469 stop = read_context.read_no_ref()
470 if read_context.read_int8() == NULL_FLAG:
471 step = None
472 else:
473 step = read_context.read_no_ref()
474 dtype = read_context.read_ref()
475 name = read_context.read_ref()
476 return self.type_(start, stop, step, dtype=dtype, name=name)
477
478
479# Use numpy array or python array module.

Callers

nothing calls this directly

Calls 3

read_no_refMethod · 0.80
read_int8Method · 0.45
read_refMethod · 0.45

Tested by

no test coverage detected