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

Method Marshal

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

Source from the content-addressed store, hash-verified

1338}
1339
1340func (m *GroupStateDesc) Marshal() (dAtA []byte, err error) {
1341 size := m.Size()
1342 dAtA = make([]byte, size)
1343 n, err := m.MarshalToSizedBuffer(dAtA[:size])
1344 if err != nil {
1345 return nil, err
1346 }
1347 return dAtA[:n], nil
1348}
1349
1350func (m *GroupStateDesc) MarshalTo(dAtA []byte) (int, error) {
1351 size := m.Size()

Callers

nothing calls this directly

Calls 2

SizeMethod · 0.95
MarshalToSizedBufferMethod · 0.95

Tested by

no test coverage detected