#[repr(C)]pub struct cs_opt_mem {
pub malloc: cs_malloc_t,
pub calloc: cs_calloc_t,
pub realloc: cs_realloc_t,
pub free: cs_free_t,
pub vsnprintf: cs_vsnprintf_t,
}
Expand description
User-defined dynamic memory related functions: malloc/calloc/realloc/free/vsnprintf() By default, Capstone uses system’s malloc(), calloc(), realloc(), free() & vsnprintf().
Fields§
§malloc: cs_malloc_t
§calloc: cs_calloc_t
§realloc: cs_realloc_t
§free: cs_free_t
§vsnprintf: cs_vsnprintf_t
Trait Implementations§
Source§impl Clone for cs_opt_mem
impl Clone for cs_opt_mem
Source§fn clone(&self) -> cs_opt_mem
fn clone(&self) -> cs_opt_mem
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for cs_opt_mem
impl Debug for cs_opt_mem
impl Copy for cs_opt_mem
Auto Trait Implementations§
impl Freeze for cs_opt_mem
impl RefUnwindSafe for cs_opt_mem
impl Send for cs_opt_mem
impl Sync for cs_opt_mem
impl Unpin for cs_opt_mem
impl UnwindSafe for cs_opt_mem
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more