Class EncodedMemoryAreaList
java.lang.Object
com.pnfsoftware.jeb.core.units.code.asm.processor.memory.AbstractEncodedMemoryArea
com.pnfsoftware.jeb.core.units.code.asm.processor.memory.EncodedMemoryAreaList
- All Implemented Interfaces:
IEncodedMemoryArea
Contains a list of memory areas and acts as if they were adjacent.
-
Constructor Summary
ConstructorsConstructorDescriptionEncodedMemoryAreaList(IEncodedMemoryArea... memoryAreas) Build a list of memory areas -
Method Summary
Modifier and TypeMethodDescriptionlongdecode(byte[] code) static EncodedMemoryAreaListfromBits(int... b) Build anEncodedMemoryAreaListfrom several isolated bits.intstatic EncodedMemoryAreaListshift(IEncodedMemoryArea memoryArea, int shift) Left shift anIEncodedMemoryAreaby a static value.Methods inherited from class com.pnfsoftware.jeb.core.units.code.asm.processor.memory.AbstractEncodedMemoryArea
decodeInt, shift
-
Constructor Details
-
EncodedMemoryAreaList
Build a list of memory areas- Parameters:
memoryAreas- From Most significant to Lowest significant
-
-
Method Details
-
getLength
public int getLength() -
decode
public long decode(byte[] code) -
shift
Left shift anIEncodedMemoryAreaby a static value. For variable left shift, useFunctionEncodedMemoryArea.- Parameters:
memoryArea-shift-- Returns:
-
fromBits
Build anEncodedMemoryAreaListfrom several isolated bits.- Parameters:
b-- Returns:
-