Class IntegerLEB128
java.lang.Object
com.pnfsoftware.jeb.util.encoding.IntegerLEB128
Read and write LEB128-encoded integers. A 4-byte integer is encoded on 1 to 5 bytes.
For decoding only on byte arrays, use the highest-level utility methods in LEB128
.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Decoded value along with the encoded length in bytes. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic IntegerLEB128.DecodedInt
decodeULEB128
(InputStream input) static int
readULEB128
(InputStream input) static void
writeSLEB128
(OutputStream out, int v) static void
writeULEB128
(OutputStream out, int v)
-
Constructor Details
-
IntegerLEB128
public IntegerLEB128()
-
-
Method Details
-
writeULEB128
- Throws:
IOException
-
readULEB128
- Throws:
IOException
-
decodeULEB128
- Throws:
IOException
-
writeSLEB128
- Throws:
IOException
-