add error handle; SizeT

This commit is contained in:
free will committed 2021-03-17 10:52:01 +08:00
1 parent de55943194
commit d46b3c15cd
4 files changed
+76 -199

No files matched your search

+9
View File
@@ -155,6 +155,15 @@ public class VlInt {
this.size = sizeT.size();
}
public VlInt(VlInt vlInt){
if(!vlInt.isInitial()){
throw new Error("VlInt vlInt: The vlInt is invalid, it should be initial.");
}
this.VlIntBytes=vlInt.getVlIntBytes();
this.VlIntValue=vlInt.getVlIntValue();
this.size = vlInt.size();
}
public VlInt(int i){
this.VlIntValue=BigInteger.valueOf(i);
if(!isValidVlIntValue(this.VlIntValue)){