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

Function encodeVarintV1

tempodb/backend/v1.pb.go:550–560  ·  view source on GitHub ↗
(dAtA []byte, offset int, v uint64)

Source from the content-addressed store, hash-verified

548}
549
550func encodeVarintV1(dAtA []byte, offset int, v uint64) int {
551 offset -= sovV1(v)
552 base := offset
553 for v >= 1<<7 {
554 dAtA[offset] = uint8(v&0x7f | 0x80)
555 v >>= 7
556 offset++
557 }
558 dAtA[offset] = uint8(v)
559 return base
560}
561func (m *BlockMeta) Size() (n int) {
562 if m == nil {
563 return 0

Callers 3

MarshalToSizedBufferMethod · 0.85
MarshalToSizedBufferMethod · 0.85
MarshalToSizedBufferMethod · 0.85

Calls 1

sovV1Function · 0.85

Tested by

no test coverage detected