MCPcopy Create free account
hub / github.com/imroc/req / putCopyBuf

Function putCopyBuf

server.go:13–18  ·  view source on GitHub ↗
(b []byte)

Source from the content-addressed store, hash-verified

11}
12
13func putCopyBuf(b []byte) {
14 if len(b) != copyBufPoolSize {
15 panic("trying to put back buffer of the wrong size in the copyBufPool")
16 }
17 copyBufPool.Put((*[copyBufPoolSize]byte)(b))
18}

Callers 1

doBodyCopyMethod · 0.85

Calls 1

PutMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…