com.pnfsoftware.jeb.core.units.code.asm.decompiler.ir.IEStateHooks |
Memory hooks.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract Integer |
onReadMemory(EState state, long address, byte[] buffer)
Invoked before a memory-read operation.
| ||||||||||
abstract Integer |
onReadMemoryPost(EState state, long address, byte[] buffer, int retcode)
Invoked after a memory-read operation.
| ||||||||||
abstract Boolean |
onWriteMemory(EState state, long address, byte[] buffer)
Invoked before a memory write.
|
Invoked before a memory-read operation.
state | the state |
---|---|
address | memory address |
buffer | output buffer (contents may be written by the hook; make sure to return a non-null code if so) |
Invoked after a memory-read operation.
state | the state |
---|---|
address | memory address |
buffer | read bytes (may be modified by the hook) |
retcode | the return code provided by the read operation (one of: #MEMREAD_OK, #MEMREAD_FAILED, #MEMREAD_BADDATA) |
Invoked before a memory write.
state | the state |
---|---|
address | memory address |
buffer | bytes to be written (may be modified by the hook) |