Class BufferedMemorySource
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 ProtectedMemoryRange
executable, readOnly, sharedFields declared in class BaseMemoryRange
baseAddress, size -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintbytegetByte(long address) intgetBytes(long address, byte[] buffer, int offset, int length) Reads data from the memory rangedoublegetDouble(long address) intgetInt(long address) longgetLong(long address) getName()shortgetShort(long address) intgetUnsignedShort(long address) Methods declared in class ProtectedMemoryRange
isExecutable, isReadOnly, isSharedMethods declared in class BaseMemoryRange
compareTo, contains, getBaseAddress, getSize, getTopAddress, isBacked, isSubRange, overlapsMethods declared in class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods declared in interface Comparable
compareToMethods declared in interface IMemoryRange
contains, getBaseAddress, getSize, getTopAddress, isExecutable, isReadOnly, isShared, isSubRange, overlapsMethods declared in interface 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:IMemorySourceReads data from the memory range- Specified by:
getBytesin 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:
getNamein interfaceIMemoryRange- Returns:
- Name of this range (e.g. .text or stack), or null if range is unnamed.
-
getAddressSpaceId
public int getAddressSpaceId()- Specified by:
getAddressSpaceIdin interfaceIMemoryRange- Returns:
- Address space ID that this range belongs to.
-