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

Method MarshalToSizedBuffer

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

Source from the content-addressed store, hash-verified

5654}
5655
5656func (m *LinkSlice) MarshalToSizedBuffer(dAtA []byte) (int, error) {
5657 i := len(dAtA)
5658 _ = i
5659 var l int
5660 _ = l
5661 if len(m.Links) > 0 {
5662 for iNdEx := len(m.Links) - 1; iNdEx >= 0; iNdEx-- {
5663 {
5664 size, err := m.Links[iNdEx].MarshalToSizedBuffer(dAtA[:i])
5665 if err != nil {
5666 return 0, err
5667 }
5668 i -= size
5669 i = encodeVarintTempo(dAtA, i, uint64(size))
5670 }
5671 i--
5672 dAtA[i] = 0xa
5673 }
5674 }
5675 return len(dAtA) - i, nil
5676}
5677
5678func (m *QueryInstantRequest) Marshal() (dAtA []byte, err error) {
5679 size := m.Size()

Callers 4

traceToParquetFunction · 0.95
XXX_MarshalMethod · 0.95
MarshalMethod · 0.95
MarshalToMethod · 0.95

Calls 2

encodeVarintTempoFunction · 0.85
MarshalToSizedBufferMethod · 0.45

Tested by

no test coverage detected