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

Method Marshal

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

Source from the content-addressed store, hash-verified

2261}
2262
2263func (m *SampleHistogramPair) Marshal() (dAtA []byte, err error) {
2264 size := m.Size()
2265 dAtA = make([]byte, size)
2266 n, err := m.MarshalToSizedBuffer(dAtA[:size])
2267 if err != nil {
2268 return nil, err
2269 }
2270 return dAtA[:n], nil
2271}
2272
2273func (m *SampleHistogramPair) MarshalTo(dAtA []byte) (int, error) {
2274 size := m.Size()

Callers

nothing calls this directly

Calls 2

SizeMethod · 0.95
MarshalToSizedBufferMethod · 0.95

Tested by

no test coverage detected