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

Method Marshal

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

Source from the content-addressed store, hash-verified

1294}
1295
1296func (m *RulesResponse) Marshal() (dAtA []byte, err error) {
1297 size := m.Size()
1298 dAtA = make([]byte, size)
1299 n, err := m.MarshalToSizedBuffer(dAtA[:size])
1300 if err != nil {
1301 return nil, err
1302 }
1303 return dAtA[:n], nil
1304}
1305
1306func (m *RulesResponse) MarshalTo(dAtA []byte) (int, error) {
1307 size := m.Size()

Callers

nothing calls this directly

Calls 2

SizeMethod · 0.95
MarshalToSizedBufferMethod · 0.95

Tested by

no test coverage detected