Class LayeredAddressSpace

java.lang.Object
com.ibm.dtfj.addressspace.CommonAddressSpace
com.ibm.dtfj.addressspace.LayeredAddressSpace
All Implemented Interfaces:
IAbstractAddressSpace

public class LayeredAddressSpace extends CommonAddressSpace
  • Constructor Details

    • LayeredAddressSpace

      public LayeredAddressSpace(IAbstractAddressSpace base, boolean isLittleEndian, boolean is64Bit)
  • Method Details

    • isExecutable

      public boolean isExecutable(int asid, long address) throws MemoryAccessException
      Parameters:
      asid - an address space ID
      address - a byte-offset into the asid
      Returns:
      true if this memory address is within an executable page
      Throws:
      MemoryAccessException - if the memory cannot be read
    • isReadOnly

      public boolean isReadOnly(int asid, long address) throws MemoryAccessException
      Parameters:
      asid - an address space ID
      address - a byte-offset into the asid
      Returns:
      true if write access to this memory address was disabled in the image
      Throws:
      MemoryAccessException - if the memory cannot be read
    • isShared

      public boolean isShared(int asid, long address) throws MemoryAccessException
      Parameters:
      asid - an address space ID
      address - a byte-offset into the asid
      Returns:
      true if this memory address is shared between processes
      Throws:
      MemoryAccessException - if the memory cannot be read
    • getBytesAt

      public int getBytesAt(int asid, long address, byte[] buffer) throws MemoryAccessException
      Parameters:
      asid - an address space ID
      address - a byte-offset into the asid
      buffer - a byte array to receive the bytes
      Returns:
      the number of bytes read into buffer
      Throws:
      MemoryAccessException - if the memory cannot be read
    • mapRegion

      public void mapRegion(long virtualAddress, ClosingFileReader residentFile, long fileOffset, long size)