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

Method Marshal

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

Source from the content-addressed store, hash-verified

2299}
2300
2301func (m *SampleHistogram) Marshal() (dAtA []byte, err error) {
2302 size := m.Size()
2303 dAtA = make([]byte, size)
2304 n, err := m.MarshalToSizedBuffer(dAtA[:size])
2305 if err != nil {
2306 return nil, err
2307 }
2308 return dAtA[:n], nil
2309}
2310
2311func (m *SampleHistogram) MarshalTo(dAtA []byte) (int, error) {
2312 size := m.Size()

Callers

nothing calls this directly

Calls 2

SizeMethod · 0.95
MarshalToSizedBufferMethod · 0.95

Tested by

no test coverage detected