- 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 TypeMethodDescriptionlongfindPattern(byte[] whatBytes, int alignment, long startFrom) bytegetByteAt(long address) intgetBytesAt(long address, byte[] buffer) intgetBytesAt(long address, byte[] buffer, int offset, int length) intgetIntAt(long address) longgetLongAt(long address) Collection<? extends IMemoryRange> getProperties(long address) shortgetShortAt(long address) booleanisExecutable(long address) booleanisReadOnly(long address) booleanisShared(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()
-