MCPcopy
hub / github.com/valyala/fasthttp / StreamWriter

FuncType StreamWriter

stream.go:19–19  ·  view source on GitHub ↗

StreamWriter must write data to w. Usually StreamWriter writes data to w in a loop (aka 'data streaming'). StreamWriter must return immediately if w returns error. Since the written data is buffered, do not forget calling w.Flush when the data must be propagated to reader.

func(w *bufio.Writer)

Source from the content-addressed store, hash-verified

17// Since the written data is buffered, do not forget calling w.Flush
18// when the data must be propagated to reader.
19type StreamWriter func(w *bufio.Writer)
20
21// NewStreamReader returns a reader, which replays all the data generated by sw.
22//

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…