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

Method unmarshalPb

tempodb/backend/tenantindex.go:77–84  ·  view source on GitHub ↗
(buffer []byte)

Source from the content-addressed store, hash-verified

75}
76
77func (b *TenantIndex) unmarshalPb(buffer []byte) error {
78 bb, err := Zstd.Decode(buffer)
79 if err != nil {
80 return fmt.Errorf("error decoding zstd: %w", err)
81 }
82
83 return b.Unmarshal(bb)
84}

Callers 4

tenantIndexProtoMethod · 0.95
TestWriterFunction · 0.95
BenchmarkIndexUnmarshalFunction · 0.80

Calls 2

UnmarshalMethod · 0.95
DecodeMethod · 0.65

Tested by 3

TestWriterFunction · 0.76
BenchmarkIndexUnmarshalFunction · 0.64