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

Method XXX_Marshal

pkg/cortexpb/cortex.pb.go:924–935  ·  view source on GitHub ↗
(b []byte, deterministic bool)

Source from the content-addressed store, hash-verified

922 return m.Unmarshal(b)
923}
924func (m *Metric) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
925 if deterministic {
926 return xxx_messageInfo_Metric.Marshal(b, m, deterministic)
927 } else {
928 b = b[:cap(b)]
929 n, err := m.MarshalToSizedBuffer(b)
930 if err != nil {
931 return nil, err
932 }
933 return b[:n], nil
934 }
935}
936func (m *Metric) XXX_Merge(src proto.Message) {
937 xxx_messageInfo_Metric.Merge(m, src)
938}

Callers

nothing calls this directly

Calls 2

MarshalToSizedBufferMethod · 0.95
MarshalMethod · 0.45

Tested by

no test coverage detected