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

Method XXX_Marshal

pkg/querier/tripperware/query.pb.go:420–431  ·  view source on GitHub ↗
(b []byte, deterministic bool)

Source from the content-addressed store, hash-verified

418 return m.Unmarshal(b)
419}
420func (m *SampleHistogram) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
421 if deterministic {
422 return xxx_messageInfo_SampleHistogram.Marshal(b, m, deterministic)
423 } else {
424 b = b[:cap(b)]
425 n, err := m.MarshalToSizedBuffer(b)
426 if err != nil {
427 return nil, err
428 }
429 return b[:n], nil
430 }
431}
432func (m *SampleHistogram) XXX_Merge(src proto.Message) {
433 xxx_messageInfo_SampleHistogram.Merge(m, src)
434}

Callers

nothing calls this directly

Calls 2

MarshalToSizedBufferMethod · 0.95
MarshalMethod · 0.45

Tested by

no test coverage detected