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

Method Marshal

pkg/ruler/ruler.pb.go:1491–1499  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1489}
1490
1491func (m *AlertStateDesc) Marshal() (dAtA []byte, err error) {
1492 size := m.Size()
1493 dAtA = make([]byte, size)
1494 n, err := m.MarshalToSizedBuffer(dAtA[:size])
1495 if err != nil {
1496 return nil, err
1497 }
1498 return dAtA[:n], nil
1499}
1500
1501func (m *AlertStateDesc) MarshalTo(dAtA []byte) (int, error) {
1502 size := m.Size()

Callers

nothing calls this directly

Calls 2

SizeMethod · 0.95
MarshalToSizedBufferMethod · 0.95

Tested by

no test coverage detected