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

Method SetProto

sinks.go:237–243  ·  view source on GitHub ↗
(m proto.Message)

Source from the content-addressed store, hash-verified

235}
236
237func (s *allocBytesSink) SetProto(m proto.Message) error {
238 b, err := proto.Marshal(m)
239 if err != nil {
240 return err
241 }
242 return s.setBytesOwned(b)
243}
244
245func (s *allocBytesSink) SetBytes(b []byte) error {
246 return s.setBytesOwned(cloneBytes(b))

Callers

nothing calls this directly

Calls 1

setBytesOwnedMethod · 0.95

Tested by

no test coverage detected