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

Method SetBytes

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

Source from the content-addressed store, hash-verified

170}
171
172func (s *protoSink) SetBytes(b []byte) error {
173 err := proto.Unmarshal(b, s.dst)
174 if err != nil {
175 return err
176 }
177 s.v.b = cloneBytes(b)
178 s.v.s = ""
179 return nil
180}
181
182func (s *protoSink) SetString(v string) error {
183 b := []byte(v)

Callers

nothing calls this directly

Calls 1

cloneBytesFunction · 0.85

Tested by

no test coverage detected