Class LEB128
java.lang.Object
com.pnfsoftware.jeb.util.encoding.LEB128
Decoding methods for LEB128-encoded integers
from byte arrays. All methods raise a
BadEncodingException
on error.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Decoded value along with the encoded length in bytes. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic LEB128.Value
read_int16
(byte[] data, int pos) static LEB128.Value
read_int32
(byte[] data, int pos) static LEB128.Value
read_int64
(byte[] data, int pos) static LEB128.Value
read_int7
(byte[] data, int pos) static LEB128.Value
read_uint1
(byte[] data, int pos) static LEB128.Value
read_uint16
(byte[] data, int pos) static LEB128.Value
read_uint32
(byte[] data, int pos) static LEB128.Value
read_uint64
(byte[] data, int pos) static LEB128.Value
read_uint7
(byte[] data, int pos)
-
Constructor Details
-
LEB128
public LEB128()
-
-
Method Details
-
read_int7
- Throws:
BadEncodingException
-
read_int16
- Throws:
BadEncodingException
-
read_int32
- Throws:
BadEncodingException
-
read_int64
- Throws:
BadEncodingException
-
read_uint1
- Throws:
BadEncodingException
-
read_uint7
- Throws:
BadEncodingException
-
read_uint16
- Throws:
BadEncodingException
-
read_uint32
- Throws:
BadEncodingException
-
read_uint64
- Throws:
BadEncodingException
-