Class DumpReaderAddressSpace
java.lang.Object
com.ibm.dtfj.addressspace.CommonAddressSpace
com.ibm.dtfj.addressspace.DumpReaderAddressSpace
- All Implemented Interfaces:
IAbstractAddressSpace
-
Constructor Summary
ConstructorsConstructorDescriptionDumpReaderAddressSpace(MemoryRange[] ranges, DumpReader reader, boolean isLittleEndian, boolean is64Bit) -
Method Summary
Modifier and TypeMethodDescriptionintgetBytesAt(int asid, long address, byte[] buffer) booleanisExecutable(int asid, long address) booleanisReadOnly(int asid, long address) booleanisShared(int asid, long address) Methods declared in class CommonAddressSpace
_residentRange, bytesPerPointer, compareAddress, findPattern, findWhichMemoryRange, getByteAt, getByteOrder, getIntAt, getLongAt, getMemoryBytes, getMemoryBytes, getMemoryRanges, getPointerAt, getShortAtModifier and TypeMethodDescriptionprotected MemoryRange_residentRange(int asid, long address) intbytesPerPointer(int asid) Provided so that callers can determine more complicated memory geometry than what can be expressed with offsets and the above scalar data readers.protected static intcompareAddress(int lasid, long lhs, int rasid, long rhs) longfindPattern(byte[] whatBytes, int alignment, long startFrom) This method is provided to appease JExtract by emulating part of the old API which is used by the JExtract natives.protected static intfindWhichMemoryRange(int asid, long addr, MemoryRange[] ranges, Integer lastRange, boolean doLinearIfNotFound) This searches memory ranges for an addr using a binary chop and returns an int indicating the memory range or -1 if address is not within any memory range......bytegetByteAt(int asid, long address) Return the byte order of this address space.intgetIntAt(int asid, long address) longgetLongAt(int asid, long address) byte[]getMemoryBytes(int asid, long vaddr, int size) byte[]getMemoryBytes(long vaddr, int size) This method is provided to appease JExtract by emulating part of the old API which is used by the JExtract natives.longgetPointerAt(int asid, long address) shortgetShortAt(int asid, long address)
-
Constructor Details
-
DumpReaderAddressSpace
public DumpReaderAddressSpace(MemoryRange[] ranges, DumpReader reader, boolean isLittleEndian, boolean is64Bit)
-
-
Method Details
-
isExecutable
- Parameters:
asid- an address space IDaddress- 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
- Parameters:
asid- an address space IDaddress- 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
-
getBytesAt
- Parameters:
asid- an address space IDaddress- a byte-offset into the asidbuffer- a byte array to receive the bytes- Returns:
- the number of bytes read into buffer
- Throws:
MemoryAccessException- if the memory cannot be read
-