MCPcopy Create free account
hub / github.com/cortexproject/cortex / XXX_Marshal

Method XXX_Marshal

pkg/ruler/ruler.pb.go:301–312  ·  view source on GitHub ↗
(b []byte, deterministic bool)

Source from the content-addressed store, hash-verified

299 return m.Unmarshal(b)
300}
301func (m *GroupStateDesc) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
302 if deterministic {
303 return xxx_messageInfo_GroupStateDesc.Marshal(b, m, deterministic)
304 } else {
305 b = b[:cap(b)]
306 n, err := m.MarshalToSizedBuffer(b)
307 if err != nil {
308 return nil, err
309 }
310 return b[:n], nil
311 }
312}
313func (m *GroupStateDesc) XXX_Merge(src proto.Message) {
314 xxx_messageInfo_GroupStateDesc.Merge(m, src)
315}

Callers

nothing calls this directly

Calls 2

MarshalToSizedBufferMethod · 0.95
MarshalMethod · 0.45

Tested by

no test coverage detected