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

Method Marshal

pkg/querier/tripperware/query.pb.go:2396–2404  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2394}
2395
2396func (m *PrometheusResponseStats) Marshal() (dAtA []byte, err error) {
2397 size := m.Size()
2398 dAtA = make([]byte, size)
2399 n, err := m.MarshalToSizedBuffer(dAtA[:size])
2400 if err != nil {
2401 return nil, err
2402 }
2403 return dAtA[:n], nil
2404}
2405
2406func (m *PrometheusResponseStats) MarshalTo(dAtA []byte) (int, error) {
2407 size := m.Size()

Callers

nothing calls this directly

Calls 2

SizeMethod · 0.95
MarshalToSizedBufferMethod · 0.95

Tested by

no test coverage detected