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

Method Marshal

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

Source from the content-addressed store, hash-verified

3233}
3234
3235func (m *Exemplar) Marshal() (dAtA []byte, err error) {
3236 size := m.Size()
3237 dAtA = make([]byte, size)
3238 n, err := m.MarshalToSizedBuffer(dAtA[:size])
3239 if err != nil {
3240 return nil, err
3241 }
3242 return dAtA[:n], nil
3243}
3244
3245func (m *Exemplar) MarshalTo(dAtA []byte) (int, error) {
3246 size := m.Size()

Callers

nothing calls this directly

Calls 2

SizeMethod · 0.95
MarshalToSizedBufferMethod · 0.95

Tested by

no test coverage detected