sovPush calculates the size of varint-encoded uint64. It is used to determine the number of bytes needed to encode an uint64 value in Protocol Buffers' variable-length integer format.
(x uint64)
| 146 | // It is used to determine the number of bytes needed to encode an uint64 value |
| 147 | // in Protocol Buffers' variable-length integer format. |
| 148 | func sovPush(x uint64) (n int) { |
| 149 | return (math_bits.Len64(x|1) + 6) / 7 |
| 150 | } |
| 151 | |
| 152 | // GeneratorCodec is the interface used to convert data from Kafka records to the |
| 153 | // tempopb.PushSpansRequest expected by the generator processors. |