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

Method SetBytes

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

Source from the content-addressed store, hash-verified

292}
293
294func (s *truncBytesSink) SetBytes(b []byte) error {
295 return s.setBytesOwned(cloneBytes(b))
296}
297
298func (s *truncBytesSink) setBytesOwned(b []byte) error {
299 if s.dst == nil {

Callers

nothing calls this directly

Calls 2

setBytesOwnedMethod · 0.95
cloneBytesFunction · 0.85

Tested by

no test coverage detected