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

public class DirectEncodedMemoryArea extends AbstractEncodedMemoryArea
Represent a memory Area in code. A memory area is composed of an index and a length
  • Constructor Details

    • DirectEncodedMemoryArea

      protected DirectEncodedMemoryArea(int index, int length)
  • Method Details

    • getIndex

      public int getIndex()
    • getLength

      public int getLength()
    • get

      public static DirectEncodedMemoryArea get(int index, int length)
      Build a DirectEncodedMemoryArea from index, length. index 0 represent the LSB
    • decodeInt

      public static int decodeInt(int index, int length, byte[] code)
    • getThumb2

      public static DirectEncodedMemoryArea getThumb2(int index, int zone, int length)
      Build an DirectEncodedMemoryArea for Thumb-2
      Parameters:
      index - index in the 16-bit area
      zone - 0 for the LSB side, 1 for the MSB
    • decode

      public long decode(byte[] code)
    • shift

      public EncodedMemoryAreaList shift(int shift)