MCPcopy
hub / github.com/grafana/tempo / XXX_Marshal

Method XXX_Marshal

tempodb/backend/v1.pb.go:59–70  ·  view source on GitHub ↗
(b []byte, deterministic bool)

Source from the content-addressed store, hash-verified

57 return m.Unmarshal(b)
58}
59func (m *BlockMeta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
60 if deterministic {
61 return xxx_messageInfo_BlockMeta.Marshal(b, m, deterministic)
62 } else {
63 b = b[:cap(b)]
64 n, err := m.MarshalToSizedBuffer(b)
65 if err != nil {
66 return nil, err
67 }
68 return b[:n], nil
69 }
70}
71func (m *BlockMeta) XXX_Merge(src proto.Message) {
72 xxx_messageInfo_BlockMeta.Merge(m, src)
73}

Callers

nothing calls this directly

Calls 2

MarshalToSizedBufferMethod · 0.95
MarshalMethod · 0.65

Tested by

no test coverage detected