java.lang.Object | |
↳ | com.pnfsoftware.jeb.core.units.code.asm.decompiler.ast.emulator.EmulatorState |
State of the emulator (memory + registers)
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
EmulatorState(INativeCodeUnit<?> nativeUnit) |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
void |
copyMemory(long src, long dst, int n)
Copy n bytes from source to destination
| ||||||||||
int |
getBaseTypeSize(ICType type)
Get base type size in bytes, i.e.
| ||||||||||
Integer | getDefaultPointerSize() | ||||||||||
Long |
getRegisterValue(int id)
Get register value
| ||||||||||
int |
getTypeSize(ICType type)
Get type size in bytes.
| ||||||||||
Long | getVarAddress(ICIdentifier var) | ||||||||||
Long | getVarValue(ICElement element) | ||||||||||
Long |
readMemory(long address, int bytesToRead)
Read memory with default endianness.
| ||||||||||
Long |
readMemorySafe(long address, int bytesToRead)
Read memory with default endianness.
| ||||||||||
void | setDefaultPointerSize(Integer defaultPointedSize) | ||||||||||
void | setRegisterValue(int id, long value) | ||||||||||
void | setVarValue(ICElement element, long value) | ||||||||||
void |
writeMemory(long address, long value, int bytesToWrite)
Write memory with default endianness.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Copy n bytes from source to destination
src | source address |
---|---|
dst | destination address |
n | number of bytes to copy |
Get base type size in bytes, i.e. the size of TYPE in 'TYPE *'
Get register value
Read memory with default endianness.
bytesToRead | number of bytes to read |
---|
Read memory with default endianness. Default value is returned when memory read failed.
bytesToRead | number of bytes to read |
---|
Write memory with default endianness.