MCPcopy Create free account
hub / github.com/celzero/firestack / Stream

Function Stream

intra/core/cp.go:54–98  ·  view source on GitHub ↗

Stream reads data from src in to dst until error, and returns the no. of bytes read. Internally, it bypasses io.ReaderFrom and io.WriterTo but uses io.CopyBuffer, recycling buffers from a global pool.

(dst io.Writer, src io.Reader)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 5

ReadFromMethod · 0.92
WriteToMethod · 0.92
WriteToMethod · 0.92
ReadFromMethod · 0.92
PipeFunction · 0.85

Calls 5

IsNilFunction · 0.85
Alloc16Function · 0.85
RecycleFunction · 0.85
ReadMethod · 0.65
WriteMethod · 0.65

Tested by

no test coverage detected