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

Method Marshal

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

Source from the content-addressed store, hash-verified

2803}
2804
2805func (m *ExemplarV2) Marshal() (dAtA []byte, err error) {
2806 size := m.Size()
2807 dAtA = make([]byte, size)
2808 n, err := m.MarshalToSizedBuffer(dAtA[:size])
2809 if err != nil {
2810 return nil, err
2811 }
2812 return dAtA[:n], nil
2813}
2814
2815func (m *ExemplarV2) MarshalTo(dAtA []byte) (int, error) {
2816 size := m.Size()

Callers

nothing calls this directly

Calls 2

SizeMethod · 0.95
MarshalToSizedBufferMethod · 0.95

Tested by

no test coverage detected