feat: gRPC gun implement extended writer
This commit is contained in:
10
transport/gun/utils.go
Normal file
10
transport/gun/utils.go
Normal file
@@ -0,0 +1,10 @@
|
||||
package gun
|
||||
|
||||
func UVarintLen(x uint64) int {
|
||||
i := 0
|
||||
for x >= 0x80 {
|
||||
x >>= 7
|
||||
i++
|
||||
}
|
||||
return i + 1
|
||||
}
|
||||
Reference in New Issue
Block a user