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

Method Marshal

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

Source from the content-addressed store, hash-verified

3113}
3114
3115func (m *Sample) Marshal() (dAtA []byte, err error) {
3116 size := m.Size()
3117 dAtA = make([]byte, size)
3118 n, err := m.MarshalToSizedBuffer(dAtA[:size])
3119 if err != nil {
3120 return nil, err
3121 }
3122 return dAtA[:n], nil
3123}
3124
3125func (m *Sample) MarshalTo(dAtA []byte) (int, error) {
3126 size := m.Size()

Callers 15

MarshalJSONMethod · 0.45
MarshalYAMLMethod · 0.45
MarshalJSONMethod · 0.45
MarshalYAMLMethod · 0.45
readerFromConfigFunction · 0.45
SetConfigMethod · 0.45
SetDeletedAtConfigMethod · 0.45
TestLabelAdapter_MarshalFunction · 0.45
MarshalJSONMethod · 0.45
XXX_MarshalMethod · 0.45
XXX_MarshalMethod · 0.45

Calls 2

SizeMethod · 0.95
MarshalToSizedBufferMethod · 0.95