MCPcopy Index your code
hub / github.com/apache/fory / write_to

Method write_to

python/pyfory/serializer.py:976–980  ·  view source on GitHub ↗
(self, stream)

Source from the content-addressed store, hash-verified

974 return len(self.binary)
975
976 def write_to(self, stream):
977 if hasattr(stream, "write_bytes"):
978 stream.write_bytes(self.binary)
979 else:
980 stream.write(self.binary)
981
982 def getbuffer(self) -> memoryview:
983 return memoryview(self.binary)

Callers

nothing calls this directly

Calls 2

writeMethod · 0.65
write_bytesMethod · 0.45

Tested by

no test coverage detected