MCPcopy
hub / github.com/gopherdata/gophernotes / Write

Method Write

messages.go:334–343  ·  view source on GitHub ↗

Write implements `io.Writer.Write` by publishing the data via `PublishWriteStream`

(p []byte)

Source from the content-addressed store, hash-verified

332
333// Write implements `io.Writer.Write` by publishing the data via `PublishWriteStream`
334func (writer *JupyterStreamWriter) Write(p []byte) (int, error) {
335 data := string(p)
336 n := len(p)
337
338 if err := writer.receipt.PublishWriteStream(writer.stream, data); err != nil {
339 return 0, err
340 }
341
342 return n, nil
343}
344
345type OutErr struct {
346 out io.Writer

Callers 3

evalSpecialCommandFunction · 0.80
WireMsgToComposedMsgFunction · 0.80
ToWireMsgMethod · 0.80

Calls 1

PublishWriteStreamMethod · 0.80

Tested by

no test coverage detected