public static interface

EState.IHooks

com.pnfsoftware.jeb.core.units.code.asm.decompiler.ir.EState.IHooks

Class Overview

EState hooks interface and adapter (defaults return null= do nothing and proceed).

Summary

Public Methods
abstract Integer onReadMemory(long address, byte[] buffer)
Invoked before a memory-read operation.
abstract Integer onReadMemoryPost(long address, byte[] buffer, int retcode)
Invoked after a memory-read operation.
abstract Boolean onWriteMemory(long address, byte[] buffer)
Invoked before a memory write.

Public Methods

public abstract Integer onReadMemory (long address, byte[] buffer)

Invoked before a memory-read operation.

Parameters
address memory address
buffer output buffer (contents may be written by the hook; make sure to return a non-null code if so)
Returns

public abstract Integer onReadMemoryPost (long address, byte[] buffer, int retcode)

Invoked after a memory-read operation.

Parameters
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)
Returns

public abstract Boolean onWriteMemory (long address, byte[] buffer)

Invoked before a memory write.

Parameters
address memory address
buffer bytes to be written (may be modified by the hook)
Returns
  • null to let the write operation proceed; else, a success code