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

Method Marshal

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

Source from the content-addressed store, hash-verified

3196}
3197
3198func (m *Metric) Marshal() (dAtA []byte, err error) {
3199 size := m.Size()
3200 dAtA = make([]byte, size)
3201 n, err := m.MarshalToSizedBuffer(dAtA[:size])
3202 if err != nil {
3203 return nil, err
3204 }
3205 return dAtA[:n], nil
3206}
3207
3208func (m *Metric) MarshalTo(dAtA []byte) (int, error) {
3209 size := m.Size()

Callers

nothing calls this directly

Calls 2

SizeMethod · 0.95
MarshalToSizedBufferMethod · 0.95

Tested by

no test coverage detected