solve meaven error & writing encoder ...

This commit is contained in:
free will committed 2021-03-05 22:04:19 +08:00
1 parent 4877609b75
commit faf17d314c
7 files changed
+205 -14

No files matched your search

+11 -2
View File
@@ -1,7 +1,7 @@
package main.java.encoding;
package encoding;
import main.java.util.ByteHelper;
import util.ByteHelper;
import java.math.BigInteger;
@@ -171,6 +171,15 @@ public class VlInt {
return this.VlIntValue.subtract(vlInt.VlIntValue).intValue();
}
/**
* 增加VlInt
* @param vlInt
* @return
*/
public int add(VlInt vlInt){
return this.VlIntValue.add(vlInt.VlIntValue).intValue();
}
/**
* 将BigInteger转为byte[按照变长无符号整数方式转]
* @param bigInteger