Struct libcapstone_sys::Builder
[−]
[src]
pub struct Builder { /* fields omitted */ }
A utlity for configuring the Capstone engine.
Methods
impl Builder
[src]
pub fn new(arch: cs_arch, mode: cs_mode) -> Builder
[src]
Returns a new Builder
for the given arch
and mode
.
pub fn build(self) -> CsResult<Capstone>
[src]
Create the Capstone engine with the configured options.
pub fn syntax(self, syntax: cs_opt_value) -> Builder
[src]
Set the syntax for the engine.
pub fn detail(self, detail: cs_opt_value) -> Builder
[src]
Set whether detail mode should be on.
pub fn skipdata(self, doit: cs_opt_value) -> Builder
[src]
Whether data encountered in code should be skipped.
pub fn skipdata_config(
self,
mnemonic: Option<&'static str>,
callback: cs_skipdata_cb_t
) -> Builder
[src]
self,
mnemonic: Option<&'static str>,
callback: cs_skipdata_cb_t
) -> Builder
Setup configuration for skipdata. Userdata will always be a nullptr for now.