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

Method MarshalTo

pkg/cortexpb/cortex.pb.go:3208–3211  ·  view source on GitHub ↗
(dAtA []byte)

Source from the content-addressed store, hash-verified

3206}
3207
3208func (m *Metric) MarshalTo(dAtA []byte) (int, error) {
3209 size := m.Size()
3210 return m.MarshalToSizedBuffer(dAtA[:size])
3211}
3212
3213func (m *Metric) MarshalToSizedBuffer(dAtA []byte) (int, error) {
3214 i := len(dAtA)

Callers

nothing calls this directly

Calls 2

SizeMethod · 0.95
MarshalToSizedBufferMethod · 0.95

Tested by

no test coverage detected