| 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.
| ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From interface
com.pnfsoftware.jeb.core.units.IPriorityBasedHooks
| |||||||||||
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) |
MEMREAD_OK, MEMREAD_FAILED,
MEMREAD_BADDATA)
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) |
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) |