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

Method XXX_Marshal

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

Source from the content-addressed store, hash-verified

1082 return m.Unmarshal(b)
1083}
1084func (m *Histogram) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
1085 if deterministic {
1086 return xxx_messageInfo_Histogram.Marshal(b, m, deterministic)
1087 } else {
1088 b = b[:cap(b)]
1089 n, err := m.MarshalToSizedBuffer(b)
1090 if err != nil {
1091 return nil, err
1092 }
1093 return b[:n], nil
1094 }
1095}
1096func (m *Histogram) XXX_Merge(src proto.Message) {
1097 xxx_messageInfo_Histogram.Merge(m, src)
1098}

Callers

nothing calls this directly

Calls 2

MarshalToSizedBufferMethod · 0.95
MarshalMethod · 0.45

Tested by

no test coverage detected