Interface IMemoryRange
- All Superinterfaces:
Comparable<IMemoryRange>
- All Known Subinterfaces:
IDetailedMemoryRange
,IMemorySource
,INamedMemoryRange
- All Known Implementing Classes:
BaseMemoryRange
,BufferedMemorySource
,DetailedDumpMemorySource
,DumpMemorySource
,ELFMemorySource
,MemoryRange
,ProtectedMemoryRange
,UnbackedMemorySource
An optionally named range of memory with permissions.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
contains
(long address) Checks whether an address is present in this memory rangeint
long
getName()
long
getSize()
long
boolean
isBacked()
boolean
boolean
boolean
isShared()
boolean
isSubRange
(IMemoryRange other) boolean
overlaps
(IMemoryRange other) Methods declared in interface java.lang.Comparable
compareTo
-
Method Details
-
getAddressSpaceId
int getAddressSpaceId()- Returns:
- Address space ID that this range belongs to.
-
getBaseAddress
long getBaseAddress()- Returns:
- Base address of this memory range
-
getTopAddress
long getTopAddress()- Returns:
- Largest address in this memory range
-
getSize
long getSize()- Returns:
- Size of this memory range, bytes
-
isExecutable
boolean isExecutable() -
isReadOnly
boolean isReadOnly() -
isBacked
boolean isBacked() -
contains
boolean contains(long address) Checks whether an address is present in this memory range- Parameters:
address
- Address to test- Returns:
- True if the memory range contains address, false otherwise.
-
overlaps
- Parameters:
other
-- Returns:
- True if other shares any addresses with this range.
-
isSubRange
- Parameters:
other
-- Returns:
- True if other models a memory range that sits entirely within this range
-
getName
String getName()- Returns:
- Name of this range (e.g. .text or stack), or null if range is unnamed.
-