- java.lang.Object
-
- com.ibm.dtfj.image.j9.ImageAddressSpace
-
- All Implemented Interfaces:
ImageAddressSpace
public class ImageAddressSpace extends Object implements ImageAddressSpace
-
-
Constructor Summary
Constructors Constructor Description ImageAddressSpace(IAbstractAddressSpace memory, int asid)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addProcess(ImageProcess proc)
int
bytesPerPointer()
This shouldn't be added to the public API but it is required by the current hashCode algorithm in JavaObject.byte
readByteAtIndex(long address)
int
readIntAtIndex(long address)
long
readLongAtIndex(long address)
ImagePointer
readPointerAtIndex(long address)
short
readShortAtIndex(long address)
String
toString()
If available, show the ASID as toString.-
Methods declared in class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods declared in interface com.ibm.dtfj.image.ImageAddressSpace
getByteOrder, getCurrentProcess, getID, getImageSections, getPointer, getProcesses, getProperties
-
-
-
-
Constructor Detail
-
ImageAddressSpace
public ImageAddressSpace(IAbstractAddressSpace memory, int asid)
-
-
Method Detail
-
addProcess
public void addProcess(ImageProcess proc)
-
readByteAtIndex
public byte readByteAtIndex(long address) throws MemoryAccessException
- Throws:
MemoryAccessException
-
readPointerAtIndex
public ImagePointer readPointerAtIndex(long address) throws MemoryAccessException
- Throws:
MemoryAccessException
-
readIntAtIndex
public int readIntAtIndex(long address) throws MemoryAccessException
- Throws:
MemoryAccessException
-
readLongAtIndex
public long readLongAtIndex(long address) throws MemoryAccessException
- Throws:
MemoryAccessException
-
readShortAtIndex
public short readShortAtIndex(long address) throws MemoryAccessException
- Throws:
MemoryAccessException
-
bytesPerPointer
public int bytesPerPointer()
This shouldn't be added to the public API but it is required by the current hashCode algorithm in JavaObject. It may be possible to remove this method if that callsite is changed to a less hackish solution- Returns:
- the number of bytes in a pointer (4 or 8).
-
-