Class SimpleAddressSpace

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

public class SimpleAddressSpace extends CommonAddressSpace
  • Constructor Details

    • SimpleAddressSpace

      public SimpleAddressSpace(MemoryRange[] deprecatedMemoryRanges, ClosingFileReader file, 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