shadow_vmt

Function shadow_vmt 

Source
pub unsafe fn shadow_vmt<T>(
    object: *mut (),
    vtable_size: usize,
) -> Result<ShadowVmt<T>>
Expand description

create a shadow VMT for instance-specific hooking

§Safety

Object must be a valid C++ object with a vtable.

§Arguments

  • object - pointer to the C++ object
  • vtable_size - number of entries in the vtable