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

Method Marshal

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

Source from the content-addressed store, hash-verified

3076}
3077
3078func (m *LabelPair) Marshal() (dAtA []byte, err error) {
3079 size := m.Size()
3080 dAtA = make([]byte, size)
3081 n, err := m.MarshalToSizedBuffer(dAtA[:size])
3082 if err != nil {
3083 return nil, err
3084 }
3085 return dAtA[:n], nil
3086}
3087
3088func (m *LabelPair) MarshalTo(dAtA []byte) (int, error) {
3089 size := m.Size()

Callers

nothing calls this directly

Calls 2

SizeMethod · 0.95
MarshalToSizedBufferMethod · 0.95

Tested by

no test coverage detected