java.lang.Object
com.ibm.j9ddr.corereaders.memory.BaseMemoryRange
com.ibm.j9ddr.corereaders.memory.ProtectedMemoryRange
com.ibm.j9ddr.corereaders.memory.BufferedMemorySource
- All Implemented Interfaces:
IMemoryRange
,IMemorySource
,Comparable<IMemoryRange>
Serves as a ByteBuffer backed memory source.
- See Also:
-
Field Summary
Fields declared in class com.ibm.j9ddr.corereaders.memory.ProtectedMemoryRange
executable, readOnly, shared
Fields declared in class com.ibm.j9ddr.corereaders.memory.BaseMemoryRange
baseAddress, size
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
byte
getByte
(long address) int
getBytes
(long address, byte[] buffer, int offset, int length) Reads data from the memory rangedouble
getDouble
(long address) int
getInt
(long address) long
getLong
(long address) getName()
short
getShort
(long address) int
getUnsignedShort
(long address) Methods declared in class com.ibm.j9ddr.corereaders.memory.ProtectedMemoryRange
isExecutable, isReadOnly, isShared
Methods declared in class com.ibm.j9ddr.corereaders.memory.BaseMemoryRange
compareTo, contains, getBaseAddress, getSize, getTopAddress, isBacked, isSubRange, overlaps
Methods declared in class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods declared in interface java.lang.Comparable
compareTo
Methods declared in interface com.ibm.j9ddr.corereaders.memory.IMemoryRange
contains, getBaseAddress, getSize, getTopAddress, isExecutable, isReadOnly, isShared, isSubRange, overlaps
Methods declared in interface com.ibm.j9ddr.corereaders.memory.IMemorySource
isBacked
-
Constructor Details
-
BufferedMemorySource
-
-
Method Details
-
getUnsignedShort
- Throws:
MemoryFault
-
getShort
- Throws:
MemoryFault
-
getInt
- Throws:
MemoryFault
-
getDouble
- Throws:
MemoryFault
-
getLong
- Throws:
MemoryFault
-
getByte
- Throws:
MemoryFault
-
getBytes
Description copied from interface:IMemorySource
Reads data from the memory range- Specified by:
getBytes
in interfaceIMemorySource
- Parameters:
address
- Starting addressbuffer
- Buffer to read intooffset
- Offset in buffer to write tolength
- Number of bytes to read- Returns:
- Bytes read
- Throws:
MemoryFault
-
getByteOrder
-
getName
- Specified by:
getName
in interfaceIMemoryRange
- Returns:
- Name of this range (e.g. .text or stack), or null if range is unnamed.
-
getAddressSpaceId
public int getAddressSpaceId()- Specified by:
getAddressSpaceId
in interfaceIMemoryRange
- Returns:
- Address space ID that this range belongs to.
-