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

Method XXX_Marshal

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

Source from the content-addressed store, hash-verified

464 return m.Unmarshal(b)
465}
466func (m *AlertStateDesc) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
467 if deterministic {
468 return xxx_messageInfo_AlertStateDesc.Marshal(b, m, deterministic)
469 } else {
470 b = b[:cap(b)]
471 n, err := m.MarshalToSizedBuffer(b)
472 if err != nil {
473 return nil, err
474 }
475 return b[:n], nil
476 }
477}
478func (m *AlertStateDesc) XXX_Merge(src proto.Message) {
479 xxx_messageInfo_AlertStateDesc.Merge(m, src)
480}

Callers

nothing calls this directly

Calls 2

MarshalToSizedBufferMethod · 0.95
MarshalMethod · 0.45

Tested by

no test coverage detected