mirror of
https://gitclone.com/github.com/MetaCubeX/Clash.Meta
synced 2024-11-15 13:41:23 +08:00
11 lines
105 B
Go
11 lines
105 B
Go
package gun
|
|
|
|
func UVarintLen(x uint64) int {
|
|
i := 0
|
|
for x >= 0x80 {
|
|
x >>= 7
|
|
i++
|
|
}
|
|
return i + 1
|
|
}
|