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

Method SetBytes

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

Source from the content-addressed store, hash-verified

142}
143
144func (s *byteViewSink) SetBytes(b []byte) error {
145 *s.dst = ByteView{b: cloneBytes(b)}
146 return nil
147}
148
149func (s *byteViewSink) SetString(v string) error {
150 *s.dst = ByteView{s: v}

Callers

nothing calls this directly

Calls 1

cloneBytesFunction · 0.85

Tested by

no test coverage detected