MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / Write

Method Write

tsunami/util/streamtolines.go:102–105  ·  view source on GitHub ↗

Write implements io.Writer, processing the data and calling the callback for each complete line.

(p []byte)

Source from the content-addressed store, hash-verified

100
101// Write implements io.Writer, processing the data and calling the callback for each complete line.
102func (lw *LineWriter) Write(p []byte) (n int, err error) {
103 streamToLines_processBuf(&lw.lineBuf, p, lw.lineFn)
104 return len(p), nil
105}
106
107// Flush outputs any remaining buffered data as a final line.
108// Should be called when the input stream is complete (e.g., at EOF).

Callers

nothing calls this directly

Calls 1

streamToLines_processBufFunction · 0.70

Tested by

no test coverage detected