mirror of
https://gitee.com/willfree/min-dev-java.git
synced 2026-10-04 19:42:01 +08:00
add error handle; SizeT
This commit is contained in:
1 parent
de55943194
commit
d46b3c15cd
4 files changed
+76
-199
No files matched your search
@@ -14,6 +14,17 @@ import java.math.BigInteger;
|
||||
*/
|
||||
public class TestSizeT {
|
||||
|
||||
public static void main(String[] args){
|
||||
// BigInteger bigInteger=new BigInteger("3");
|
||||
// VlInt vlInt=new VlInt(bigInteger);
|
||||
// System.out.println(vlInt.isEqual(2));
|
||||
byte[] b1 = new byte[]{(byte) 0xf1, (byte) 0xff, (byte) 0xff};//241,0,127
|
||||
SizeT start1 = new SizeT(b1);
|
||||
System.out.println("VlIntBytes:"+start1.getVlIntBytes().length);
|
||||
System.out.println("VlIntValue:"+start1.getVlIntValue());
|
||||
System.out.println(start1.toString());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testIsEqual(){
|
||||
BigInteger bigInteger = new BigInteger("3");
|
||||
|
||||
Reference in new issue
Block a user