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

Method Marshal

pkg/cortexpb/cortex.pb.go:3149–3157  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3147}
3148
3149func (m *MetricMetadata) Marshal() (dAtA []byte, err error) {
3150 size := m.Size()
3151 dAtA = make([]byte, size)
3152 n, err := m.MarshalToSizedBuffer(dAtA[:size])
3153 if err != nil {
3154 return nil, err
3155 }
3156 return dAtA[:n], nil
3157}
3158
3159func (m *MetricMetadata) MarshalTo(dAtA []byte) (int, error) {
3160 size := m.Size()

Callers

nothing calls this directly

Calls 2

SizeMethod · 0.95
MarshalToSizedBufferMethod · 0.95

Tested by

no test coverage detected