Package org.infinispan.commons.io
Class SignedNumeric
java.lang.Object
org.infinispan.commons.io.SignedNumeric
Variable length encoding for signed numbers, using the ZigZag technique
- Since:
- 8.0
- Author:
- gustavonalle
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
decode
(int vint) static int
encode
(int vint) static int
static int
static void
writeSignedInt
(ObjectOutput out, int i) static void
writeSignedInt
(OutputStream out, int i)
-
Method Details
-
readSignedInt
- Throws:
IOException
-
readSignedInt
- Throws:
IOException
-
writeSignedInt
- Throws:
IOException
-
writeSignedInt
- Throws:
IOException
-
decode
public static int decode(int vint) -
encode
public static int encode(int vint)
-