fix[protocol]: 修复写入string的时候,写入长度的时没有做zigzag操作

This commit is contained in:
jaysunxiao
2021-05-23 17:34:11 +08:00
parent 38df17e2f1
commit efe7d3f69c
@@ -156,6 +156,8 @@ public abstract class ByteBufUtils {
private static int writeIntCount(int value) {
value = (value << 1) ^ (value >> 31);
if (value >>> 7 == 0) {
return 1;
}