Struct capstone_sys::cs_opt_mem
source · [−]#[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_tcalloc: cs_calloc_trealloc: cs_realloc_tfree: cs_free_tvsnprintf: cs_vsnprintf_tTrait Implementations
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more