java.lang.Object
com.ibm.j9ddr.corereaders.memory.SearchableMemory
- All Implemented Interfaces:
IMemory
- Direct Known Subclasses:
AbstractMemory
Abstract IMemory encapsulating findPattern() logic.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected long[][]
long
findPattern
(byte[] whatBytes, int alignment, long startFrom) protected int
mergeRangeTable
(long[][] rangeTable) Merges consecutive ranges to build a list of ranges to readMethods declared in class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods declared in interface com.ibm.j9ddr.corereaders.memory.IMemory
getByteAt, getByteOrder, getBytesAt, getBytesAt, getIntAt, getLongAt, getMemoryRanges, getPlatform, getProperties, getShortAt, isExecutable, isReadOnly, isShared
-
Field Details
-
rangeTable
protected long[][] rangeTable
-
-
Constructor Details
-
SearchableMemory
public SearchableMemory()
-
-
Method Details
-
findPattern
public long findPattern(byte[] whatBytes, int alignment, long startFrom) - Specified by:
findPattern
in interfaceIMemory
-
mergeRangeTable
protected int mergeRangeTable(long[][] rangeTable) Merges consecutive ranges to build a list of ranges to read- Parameters:
rangeTable
- Range table to modify- Returns:
- Number of merged fields
-
buildRangeTable
protected long[][] buildRangeTable()- Returns:
- Memory ranges and sizes. Addressable as array[range index][0=base address, 1=size]
-