MCPcopy Create free account
hub / github.com/bepass-org/proxy / copyBuffer

Function copyBuffer

pkg/http/common.go:13–15  ·  view source on GitHub ↗

copyBuffer is a helper function to copy data between two net.Conn objects.

(dst, src net.Conn, buf []byte)

Source from the content-addressed store, hash-verified

11
12// copyBuffer is a helper function to copy data between two net.Conn objects.
13func copyBuffer(dst, src net.Conn, buf []byte) (int64, error) {
14 return io.CopyBuffer(dst, src, buf)
15}
16
17type responseWriter struct {
18 conn net.Conn

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected