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

Method write

python/pyfory/serializer.py:950–954  ·  view source on GitHub ↗
(self, write_context, value)

Source from the content-addressed store, hash-verified

948
949class BytesSerializer(Serializer):
950 def write(self, write_context, value):
951 if write_context.buffer_callback is None:
952 write_context.write_bytes_and_size(value)
953 return
954 write_context.write_buffer_object(BytesBufferObject(value))
955
956 def read(self, read_context):
957 if not read_context.peer_out_of_band_enabled:

Callers

nothing calls this directly

Calls 2

BytesBufferObjectClass · 0.85
write_buffer_objectMethod · 0.80

Tested by

no test coverage detected