MCPcopy Create free account
hub / github.com/golang/groupcache / SetBytes

Method SetBytes

sinks.go:91–93  ·  view source on GitHub ↗
(v []byte)

Source from the content-addressed store, hash-verified

89}
90
91func (s *stringSink) SetBytes(v []byte) error {
92 return s.SetString(string(v))
93}
94
95func (s *stringSink) SetProto(m proto.Message) error {
96 b, err := proto.Marshal(m)

Callers

nothing calls this directly

Calls 1

SetStringMethod · 0.95

Tested by

no test coverage detected