-
- All Superinterfaces:
Comparable<IMemoryRange>,IMemoryRange
- All Known Implementing Classes:
BufferedMemorySource,DetailedDumpMemorySource,DumpMemorySource,ELFMemorySource,UnbackedMemorySource
public interface IMemorySource extends IMemoryRange
A memory range that holds its data.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetBytes(long address, byte[] buffer, int offset, int length)Reads data from the memory rangebooleanisBacked()-
Methods declared in interface java.lang.Comparable
compareTo
-
Methods declared in interface com.ibm.j9ddr.corereaders.memory.IMemoryRange
contains, getAddressSpaceId, getBaseAddress, getName, getSize, getTopAddress, isExecutable, isReadOnly, isShared, isSubRange, overlaps
-
-
-
-
Method Detail
-
getBytes
int getBytes(long address, byte[] buffer, int offset, int length) throws MemoryFaultReads data from the memory range- Parameters:
address- Starting addressbuffer- Buffer to read intooffset- Offset in buffer to write tolength- Number of bytes to read- Returns:
- Bytes read
- Throws:
MemoryFault
-
isBacked
boolean isBacked()
- Specified by:
isBackedin interfaceIMemoryRange- Returns:
- True if this memory range is backed with data (such that getBytes() won't always throw MemoryFault).
-
-