From 950d89112665bead13fa79ae7e37b8addc188ca8 Mon Sep 17 00:00:00 2001
From: liuxiaolong <liuxiaolong@aiotlink.com>
Date: 星期二, 13 十月 2020 10:47:43 +0800
Subject: [PATCH] isTriggerByPreSdk set 0:非触发,1:必要触发,2:非必要触发
---
base.pb.go | 10 ++--------
1 files changed, 2 insertions(+), 8 deletions(-)
diff --git a/base.pb.go b/base.pb.go
index 2034d85..28e3465 100644
--- a/base.pb.go
+++ b/base.pb.go
@@ -8,6 +8,7 @@
proto "github.com/gogo/protobuf/proto"
io "io"
math "math"
+ math_bits "math/bits"
)
// Reference imports to suppress errors if they are not otherwise used.
@@ -276,14 +277,7 @@
}
func sovBase(x uint64) (n int) {
- for {
- n++
- x >>= 7
- if x == 0 {
- break
- }
- }
- return n
+ return (math_bits.Len64(x|1) + 6) / 7
}
func sozBase(x uint64) (n int) {
return sovBase(uint64((x << 1) ^ uint64((int64(x) >> 63))))
--
Gitblit v1.8.0