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

Method XXX_Marshal

pkg/querier/tripperware/query.pb.go:317–328  ·  view source on GitHub ↗
(b []byte, deterministic bool)

Source from the content-addressed store, hash-verified

315 return m.Unmarshal(b)
316}
317func (m *SampleStream) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
318 if deterministic {
319 return xxx_messageInfo_SampleStream.Marshal(b, m, deterministic)
320 } else {
321 b = b[:cap(b)]
322 n, err := m.MarshalToSizedBuffer(b)
323 if err != nil {
324 return nil, err
325 }
326 return b[:n], nil
327 }
328}
329func (m *SampleStream) XXX_Merge(src proto.Message) {
330 xxx_messageInfo_SampleStream.Merge(m, src)
331}

Callers

nothing calls this directly

Calls 2

MarshalToSizedBufferMethod · 0.95
MarshalMethod · 0.45

Tested by

no test coverage detected