[−][src]Struct capstone_sys::cs_opt_skipdata
User-customized setup for SKIPDATA option
Fields
mnemonic: *const c_char
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".
callback: cs_skipdata_cb_t
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.
user_data: *mut c_void
User-defined data to be passed to @callback function pointer.
Trait Implementations
impl Copy for cs_opt_skipdata
[src]
impl Clone for cs_opt_skipdata
[src]
fn clone(&self) -> Self
[src]
default fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for cs_opt_skipdata
[src]
Auto Trait Implementations
impl !Send for cs_opt_skipdata
impl !Sync for cs_opt_skipdata
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,