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

Method Marshal

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

Source from the content-addressed store, hash-verified

2855}
2856
2857func (m *MetadataV2) Marshal() (dAtA []byte, err error) {
2858 size := m.Size()
2859 dAtA = make([]byte, size)
2860 n, err := m.MarshalToSizedBuffer(dAtA[:size])
2861 if err != nil {
2862 return nil, err
2863 }
2864 return dAtA[:n], nil
2865}
2866
2867func (m *MetadataV2) MarshalTo(dAtA []byte) (int, error) {
2868 size := m.Size()

Callers

nothing calls this directly

Calls 2

SizeMethod · 0.95
MarshalToSizedBufferMethod · 0.95

Tested by

no test coverage detected