cs_opt_skipdata

User-customized setup for SKIPDATA option

Members

Variables

callback
cs_skipdata_cb_t callback;

User-defined callback function to be called when Capstone hits data. If the returned value from this callback is positive (>0), Capstone will skip exactly that number of bytes & continue. Otherwise, if the callback returns 0, Capstone stops disassembling and returns immediately from cs_disasm() NOTE: if this callback pointer is NULL, Capstone would skip a number of bytes depending on architectures, as following: Arm: 2 bytes (Thumb mode) or 4 bytes. Arm64: 4 bytes. Mips: 4 bytes. M680x: 1 byte. PowerPC: 4 bytes. Sparc: 4 bytes. SystemZ: 2 bytes. X86: 1 bytes. XCore: 2 bytes. EVM: 1 bytes.

mnemonic
const(char)* mnemonic;

Capstone considers data to skip as special "instructions". User can specify the string for this instruction's "mnemonic" here. By default (if @mnemonic is NULL), Capstone use ".byte".

user_data
void* user_data;

User-defined data to be passed to @callback function pointer.

Meta