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
Nested ClassesModifier and TypeClassDescriptionstatic classDecoded value along with the encoded length in bytes. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic IntegerLEB128.DecodedIntdecodeULEB128(InputStream input) static intreadULEB128(InputStream input) static voidwriteSLEB128(OutputStream out, int v) static voidwriteULEB128(OutputStream out, int v)
-
Constructor Details
-
IntegerLEB128
public IntegerLEB128()
-
-
Method Details
-
writeULEB128
- Throws:
IOException
-
readULEB128
- Throws:
IOException
-
decodeULEB128
- Throws:
IOException
-
writeSLEB128
- Throws:
IOException
-