Class DirectEncodedMemoryArea
java.lang.Object
com.pnfsoftware.jeb.core.units.code.asm.processor.memory.AbstractEncodedMemoryArea
com.pnfsoftware.jeb.core.units.code.asm.processor.memory.DirectEncodedMemoryArea
- All Implemented Interfaces:
IEncodedMemoryArea
Represent a memory Area in code. A memory area is composed of an index and a length
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlong
decode
(byte[] code) static int
decodeInt
(int index, int length, byte[] code) static DirectEncodedMemoryArea
get
(int index, int length) Build aDirectEncodedMemoryArea
from index, length.int
getIndex()
int
static DirectEncodedMemoryArea
getThumb2
(int index, int zone, int length) Build anDirectEncodedMemoryArea
for Thumb-2shift
(int shift) Methods inherited from class com.pnfsoftware.jeb.core.units.code.asm.processor.memory.AbstractEncodedMemoryArea
decodeInt
-
Constructor Details
-
DirectEncodedMemoryArea
protected DirectEncodedMemoryArea(int index, int length)
-
-
Method Details
-
getIndex
public int getIndex() -
getLength
public int getLength() -
get
Build aDirectEncodedMemoryArea
from index, length. index 0 represent the LSB -
decodeInt
public static int decodeInt(int index, int length, byte[] code) -
getThumb2
Build anDirectEncodedMemoryArea
for Thumb-2- Parameters:
index
- index in the 16-bit areazone
- 0 for the LSB side, 1 for the MSB
-
decode
public long decode(byte[] code) -
shift
-