MCPcopy Create free account
hub / github.com/acln0/zerocopy / WriteTo

Method WriteTo

zerocopy.go:100–102  ·  view source on GitHub ↗

WriteTo transfers data from the pipe to dst. If dst implements syscall.Conn, WriteTo tries to use splice(2) for the data transfer from the pipe to the destination file descriptor. If that is not possible, WriteTo falls back to a generic copy.

(dst io.Writer)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 1

writeToMethod · 0.95

Tested by

no test coverage detected