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

Method XXX_Marshal

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

Source from the content-addressed store, hash-verified

512 return m.Unmarshal(b)
513}
514func (m *MetadataV2) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
515 if deterministic {
516 return xxx_messageInfo_MetadataV2.Marshal(b, m, deterministic)
517 } else {
518 b = b[:cap(b)]
519 n, err := m.MarshalToSizedBuffer(b)
520 if err != nil {
521 return nil, err
522 }
523 return b[:n], nil
524 }
525}
526func (m *MetadataV2) XXX_Merge(src proto.Message) {
527 xxx_messageInfo_MetadataV2.Merge(m, src)
528}

Callers

nothing calls this directly

Calls 2

MarshalToSizedBufferMethod · 0.95
MarshalMethod · 0.45

Tested by

no test coverage detected