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

Method Marshal

pkg/querier/tripperware/query.pb.go:2198–2206  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2196}
2197
2198func (m *SampleStream) Marshal() (dAtA []byte, err error) {
2199 size := m.Size()
2200 dAtA = make([]byte, size)
2201 n, err := m.MarshalToSizedBuffer(dAtA[:size])
2202 if err != nil {
2203 return nil, err
2204 }
2205 return dAtA[:n], nil
2206}
2207
2208func (m *SampleStream) MarshalTo(dAtA []byte) (int, error) {
2209 size := m.Size()

Callers

nothing calls this directly

Calls 2

SizeMethod · 0.95
MarshalToSizedBufferMethod · 0.95

Tested by

no test coverage detected