MCPcopy Index your code
hub / github.com/golang/groupcache / SetBytes

Method SetBytes

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

Source from the content-addressed store, hash-verified

243}
244
245func (s *allocBytesSink) SetBytes(b []byte) error {
246 return s.setBytesOwned(cloneBytes(b))
247}
248
249func (s *allocBytesSink) setBytesOwned(b []byte) error {
250 if s.dst == nil {

Callers

nothing calls this directly

Calls 2

setBytesOwnedMethod · 0.95
cloneBytesFunction · 0.85

Tested by

no test coverage detected