MCPcopy
hub / github.com/golang/groupcache / cloneBytes

Function cloneBytes

sinks.go:45–49  ·  view source on GitHub ↗
(b []byte)

Source from the content-addressed store, hash-verified

43}
44
45func cloneBytes(b []byte) []byte {
46 c := make([]byte, len(b))
47 copy(c, b)
48 return c
49}
50
51func setSinkView(s Sink, v ByteView) error {
52 // A viewSetter is a Sink that can also receive its value from

Callers 7

ByteSliceMethod · 0.85
SetBytesMethod · 0.85
SetBytesMethod · 0.85
setViewMethod · 0.85
SetBytesMethod · 0.85
setBytesOwnedMethod · 0.85
SetBytesMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…