Interface IMemory
- All Known Subinterfaces:
IAddressSpace
,IProcess
- All Known Implementing Classes:
AbstractMemory
,ASNoProcess
,BufferedMemory
,LinuxProcessAddressSpace
,OSXProcessAddressSpace
,ProcessAddressSpace
,SearchableMemory
,WindowsProcessAddressSpace
public interface IMemory
Common interface representing an area of addressable memory.
-
Method Summary
Modifier and TypeMethodDescriptionlong
findPattern
(byte[] whatBytes, int alignment, long startFrom) byte
getByteAt
(long address) int
getBytesAt
(long address, byte[] buffer) int
getBytesAt
(long address, byte[] buffer, int offset, int length) int
getIntAt
(long address) long
getLongAt
(long address) Collection
<? extends IMemoryRange> getProperties
(long address) short
getShortAt
(long address) boolean
isExecutable
(long address) boolean
isReadOnly
(long address) boolean
isShared
(long address)
-
Method Details
-
getMemoryRanges
Collection<? extends IMemoryRange> getMemoryRanges() -
getByteAt
- Throws:
MemoryFault
-
getShortAt
- Throws:
MemoryFault
-
getIntAt
- Throws:
MemoryFault
-
getLongAt
- Throws:
MemoryFault
-
getBytesAt
- Throws:
MemoryFault
-
getBytesAt
- Throws:
MemoryFault
-
findPattern
long findPattern(byte[] whatBytes, int alignment, long startFrom) -
getByteOrder
ByteOrder getByteOrder() -
isExecutable
boolean isExecutable(long address) -
isReadOnly
boolean isReadOnly(long address) -
getProperties
-
getPlatform
Platform getPlatform()
-