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

Method read

python/pyfory/serializer.py:575–582  ·  view source on GitHub ↗
(self, buffer)

Source from the content-addressed store, hash-verified

573 buffer.write_buffer(swapped)
574
575 def read(self, buffer):
576 data = buffer.read_bytes_and_size()
577 arr = array.array(self.typecode, [])
578 arr.frombytes(data)
579 if not is_little_endian and self.itemsize > 1:
580 # Swap bytes on big-endian machines for multi-byte types
581 arr.byteswap()
582 return arr
583
584
585FORY_ARRAY_WRAPPERS = {

Callers

nothing calls this directly

Calls 1

arrayMethod · 0.45

Tested by

no test coverage detected