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

Method SetProto

sinks.go:39–39  ·  view source on GitHub ↗

SetProto sets the value to the encoded version of m. The caller retains ownership of m.

(m proto.Message)

Source from the content-addressed store, hash-verified

37 // SetProto sets the value to the encoded version of m.
38 // The caller retains ownership of m.
39 SetProto(m proto.Message) error
40
41 // view returns a frozen view of the bytes for caching.
42 view() (ByteView, error)

Callers 1

testSetupFunction · 0.65

Implementers 5

stringSinksinks.go
byteViewSinksinks.go
protoSinksinks.go

Calls

no outgoing calls

Tested by 1

testSetupFunction · 0.52