pub fn new(code_ptr: *const c_void) -> Self {
        let slice = unsafe { slice::from_raw_parts(code_ptr as *const usize, 3) };
        let funcptr = slice[0] as *const c_void;
        let smptr = slice[1] as *const c_void;
        let smsize = slice[2] as usize;
        Self {
            entry: unsafe { mem::transmute(funcptr) },
            smptr,
            smsize,
        }
    }
/// Create a `CompiledTrace` from a pointer to an array containing: the pointer to the compiled
/// trace, the pointer to the stackmap, and the size of the stackmap.
Create a `CompiledTrace` from a pointer to an array containing: the pointer to the compiled
trace, the pointer to the stackmap, and the size of the stackmap.
Create a ` CompiledTrace ` from a pointer to an array containing : the pointer to the compiled trace the pointer to the stackmap and the size of the stackmap .
pub fn new(code_ptr: *const c_void) -> Self {
        let slice = unsafe { slice::from_raw_parts(code_ptr as *const usize, 3) };
        let funcptr = slice[0] as *const c_void;
        let smptr = slice[1] as *const c_void;
        let smsize = slice[2] as usize;
        Self {
            entry: unsafe { mem::transmute(funcptr) },
            smptr,
            smsize,
        }
    }
pub fn new ( code_ptr : * const c_void ) -> Self { let slice = unsafe { slice :: from_raw_parts ( code_ptr as * const usize , 3 ) } ; let funcptr = slice [ 0 ] as * const c_void ; let smptr = slice [ 1 ] as * const c_void ; let smsize = slice [ 2 ] as usize ; Self { entry : unsafe { mem :: transmute ( funcptr ) } , smptr , smsize , } }
Create a `CompiledTrace` from a pointer to an array containing: the pointer to the compiled
trace, the pointer to the stackmap, and the size of the stackmap.
Create a ` CompiledTrace ` from a pointer to an array containing : the pointer to the compiled trace the pointer to the stackmap and the size of the stackmap .
code_ptr
*const c_void
code_ptr
*const c_void