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

Method Marshal

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

Source from the content-addressed store, hash-verified

1403}
1404
1405func (m *RuleStateDesc) Marshal() (dAtA []byte, err error) {
1406 size := m.Size()
1407 dAtA = make([]byte, size)
1408 n, err := m.MarshalToSizedBuffer(dAtA[:size])
1409 if err != nil {
1410 return nil, err
1411 }
1412 return dAtA[:n], nil
1413}
1414
1415func (m *RuleStateDesc) MarshalTo(dAtA []byte) (int, error) {
1416 size := m.Size()

Callers

nothing calls this directly

Calls 2

SizeMethod · 0.95
MarshalToSizedBufferMethod · 0.95

Tested by

no test coverage detected