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

Method write

python/pyfory/tests/test_stream.py:96–100  ·  view source on GitHub ↗
(self, payload)

Source from the content-addressed store, hash-verified

94 self.flush_calls = 0
95
96 def write(self, payload):
97 view = memoryview(payload).cast("B")
98 self.write_calls += 1
99 self._data.extend(view)
100 return len(view)
101
102 def flush(self):
103 self.flush_calls += 1

Callers

nothing calls this directly

Calls 2

extendMethod · 0.80
castMethod · 0.45

Tested by

no test coverage detected