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

Method MarshalToSizedBuffer

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

Source from the content-addressed store, hash-verified

4397}
4398
4399func (m *DedicatedColumn) MarshalToSizedBuffer(dAtA []byte) (int, error) {
4400 i := len(dAtA)
4401 _ = i
4402 var l int
4403 _ = l
4404 if m.Options != 0 {
4405 i = encodeVarintTempo(dAtA, i, uint64(m.Options))
4406 i--
4407 dAtA[i] = 0x20
4408 }
4409 if m.Scope != 0 {
4410 i = encodeVarintTempo(dAtA, i, uint64(m.Scope))
4411 i--
4412 dAtA[i] = 0x18
4413 }
4414 if len(m.Name) > 0 {
4415 i -= len(m.Name)
4416 copy(dAtA[i:], m.Name)
4417 i = encodeVarintTempo(dAtA, i, uint64(len(m.Name)))
4418 i--
4419 dAtA[i] = 0x12
4420 }
4421 if m.Type != 0 {
4422 i = encodeVarintTempo(dAtA, i, uint64(m.Type))
4423 i--
4424 dAtA[i] = 0x8
4425 }
4426 return len(dAtA) - i, nil
4427}
4428
4429func (m *SearchResponse) Marshal() (dAtA []byte, err error) {
4430 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