(x uint64)
| 1208 | } |
| 1209 | |
| 1210 | func sovNode(x uint64) (n int) { |
| 1211 | for { |
| 1212 | n++ |
| 1213 | x >>= 7 |
| 1214 | if x == 0 { |
| 1215 | break |
| 1216 | } |
| 1217 | } |
| 1218 | return n |
| 1219 | } |
| 1220 | func sozNode(x uint64) (n int) { |
| 1221 | return sovNode(uint64((x << 1) ^ uint64((int64(x) >> 63)))) |
| 1222 | } |