dr_thread_alloc

Function dr_thread_alloc 

Source
pub unsafe extern "C" fn dr_thread_alloc(
    drcontext: *mut c_void,
    size: usize,
) -> *mut c_void
Expand description

Allocates \p size bytes of memory from DR’s memory pool specific to the thread associated with \p drcontext. This memory is only guaranteed to be aligned to the pointer size: 8 byte alignment for 64-bit; 4-byte alignment for 32-bit. (The wrapped malloc() guarantees the more standard double-pointer-size.)