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

Method MarshalToSizedBuffer

pkg/tempopb/tempo.pb.go:4182–4193  ·  view source on GitHub ↗
(dAtA []byte)

Source from the content-addressed store, hash-verified

4180}
4181
4182func (m *TraceByIDMetrics) MarshalToSizedBuffer(dAtA []byte) (int, error) {
4183 i := len(dAtA)
4184 _ = i
4185 var l int
4186 _ = l
4187 if m.InspectedBytes != 0 {
4188 i = encodeVarintTempo(dAtA, i, uint64(m.InspectedBytes))
4189 i--
4190 dAtA[i] = 0x8
4191 }
4192 return len(dAtA) - i, nil
4193}
4194
4195func (m *SearchRequest) Marshal() (dAtA []byte, err error) {
4196 size := m.Size()

Callers 3

XXX_MarshalMethod · 0.95
MarshalMethod · 0.95
MarshalToMethod · 0.95

Calls 1

encodeVarintTempoFunction · 0.85

Tested by

no test coverage detected