MCPcopy Index your code
hub / github.com/celzero/firestack / Pipe

Function Pipe

intra/core/cp.go:25–49  ·  view source on GitHub ↗

Pipe reads data from src to dst, and returns the number of bytes copied. Prefers src.WriteTo(dst) and dst.ReadFrom(src) if available. Otherwise, it uses core.Stream.

(dst io.Writer, src io.Reader)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 5

uploadFunction · 0.92
downloadFunction · 0.92
pipeconnFunction · 0.92
pipetcpFunction · 0.92
tcphandleMethod · 0.92

Calls 4

IsNilFunction · 0.85
StreamFunction · 0.85
WriteToMethod · 0.65
ReadFromMethod · 0.65

Tested by

no test coverage detected