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

Method marshalPb

tempodb/backend/tenantindex.go:67–75  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

65}
66
67func (b *TenantIndex) marshalPb() ([]byte, error) {
68 pbBytes, err := proto.Marshal(b)
69 if err != nil {
70 return nil, err
71 }
72
73 buffer := []byte{}
74 return Zstd.Encode(pbBytes, buffer)
75}
76
77func (b *TenantIndex) unmarshalPb(buffer []byte) error {
78 bb, err := Zstd.Decode(buffer)

Callers 4

BenchmarkIndexMarshalFunction · 0.80
WriteTenantIndexMethod · 0.80
TestReaderFunction · 0.80

Calls 2

MarshalMethod · 0.65
EncodeMethod · 0.65

Tested by 3

BenchmarkIndexMarshalFunction · 0.64
TestReaderFunction · 0.64