package gun func UVarintLen(x uint64) int { i := 0 for x >= 0x80 { x >>= 7 i++ } return i + 1 }