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

Method XXX_Marshal

pkg/cortexpb/cortex.pb.go:277–288  ·  view source on GitHub ↗
(b []byte, deterministic bool)

Source from the content-addressed store, hash-verified

275 return m.Unmarshal(b)
276}
277func (m *WriteRequestV2) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
278 if deterministic {
279 return xxx_messageInfo_WriteRequestV2.Marshal(b, m, deterministic)
280 } else {
281 b = b[:cap(b)]
282 n, err := m.MarshalToSizedBuffer(b)
283 if err != nil {
284 return nil, err
285 }
286 return b[:n], nil
287 }
288}
289func (m *WriteRequestV2) XXX_Merge(src proto.Message) {
290 xxx_messageInfo_WriteRequestV2.Merge(m, src)
291}

Callers

nothing calls this directly

Calls 2

MarshalToSizedBufferMethod · 0.95
MarshalMethod · 0.45

Tested by

no test coverage detected