MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / cloneByteSlices

Function cloneByteSlices

internal/pluginhost/adapters.go:2202–2211  ·  view source on GitHub ↗
(in [][]byte)

Source from the content-addressed store, hash-verified

2200}
2201
2202func cloneByteSlices(in [][]byte) [][]byte {
2203 if len(in) == 0 {
2204 return nil
2205 }
2206 out := make([][]byte, 0, len(in))
2207 for _, item := range in {
2208 out = append(out, bytes.Clone(item))
2209 }
2210 return out
2211}
2212
2213func cloneValues(in url.Values) url.Values {
2214 if len(in) == 0 {

Callers 1

Calls 1

CloneMethod · 0.45

Tested by

no test coverage detected