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_t
§calloc: cs_calloc_t
§realloc: cs_realloc_t
§free: cs_free_t
§vsnprintf: cs_vsnprintf_t
Trait 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§
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