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

Method XXX_Marshal

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

Source from the content-addressed store, hash-verified

858 return m.Unmarshal(b)
859}
860func (m *MetricMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
861 if deterministic {
862 return xxx_messageInfo_MetricMetadata.Marshal(b, m, deterministic)
863 } else {
864 b = b[:cap(b)]
865 n, err := m.MarshalToSizedBuffer(b)
866 if err != nil {
867 return nil, err
868 }
869 return b[:n], nil
870 }
871}
872func (m *MetricMetadata) XXX_Merge(src proto.Message) {
873 xxx_messageInfo_MetricMetadata.Merge(m, src)
874}

Callers

nothing calls this directly

Calls 2

MarshalToSizedBufferMethod · 0.95
MarshalMethod · 0.45

Tested by

no test coverage detected