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

Method XXX_Marshal

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

Source from the content-addressed store, hash-verified

805 return m.Unmarshal(b)
806}
807func (m *Sample) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
808 if deterministic {
809 return xxx_messageInfo_Sample.Marshal(b, m, deterministic)
810 } else {
811 b = b[:cap(b)]
812 n, err := m.MarshalToSizedBuffer(b)
813 if err != nil {
814 return nil, err
815 }
816 return b[:n], nil
817 }
818}
819func (m *Sample) XXX_Merge(src proto.Message) {
820 xxx_messageInfo_Sample.Merge(m, src)
821}

Callers

nothing calls this directly

Calls 2

MarshalToSizedBufferMethod · 0.95
MarshalMethod · 0.45

Tested by

no test coverage detected