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

Method Marshal

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

Source from the content-addressed store, hash-verified

2705}
2706
2707func (m *TimeSeriesV2) Marshal() (dAtA []byte, err error) {
2708 size := m.Size()
2709 dAtA = make([]byte, size)
2710 n, err := m.MarshalToSizedBuffer(dAtA[:size])
2711 if err != nil {
2712 return nil, err
2713 }
2714 return dAtA[:n], nil
2715}
2716
2717func (m *TimeSeriesV2) MarshalTo(dAtA []byte) (int, error) {
2718 size := m.Size()

Callers

nothing calls this directly

Calls 2

SizeMethod · 0.95
MarshalToSizedBufferMethod · 0.95

Tested by

no test coverage detected