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

Method XXX_Marshal

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

Source from the content-addressed store, hash-verified

196 return m.Unmarshal(b)
197}
198func (m *CachedResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
199 if deterministic {
200 return xxx_messageInfo_CachedResponse.Marshal(b, m, deterministic)
201 } else {
202 b = b[:cap(b)]
203 n, err := m.MarshalToSizedBuffer(b)
204 if err != nil {
205 return nil, err
206 }
207 return b[:n], nil
208 }
209}
210func (m *CachedResponse) XXX_Merge(src proto.Message) {
211 xxx_messageInfo_CachedResponse.Merge(m, src)
212}

Callers

nothing calls this directly

Calls 2

MarshalToSizedBufferMethod · 0.95
MarshalMethod · 0.45

Tested by

no test coverage detected