okay,i have been using rust do some reverse engineer work about one year.In the past year,totally,all of the things i would love to use rust. Love those hmm, crate management,or dealing with error? 90 % area very comfortable.
But can we support decltype
keywork like cpp?,i just 100% don't wanna rewrite so much function params define again especially when using hook in wondows api,i know rust just pay attention more about the safety,but we have unsafe isn't it?
and when i use pdb to do some patch then i try dump the struct from cpp Class.the inheritation can't support.
so eg..when i wanna get some inherited object i need to use like this one
#[repr(C)]
pub struct CAvatar {
_p0: Padding<0x4e4>,
pub move_action: i32,
_p1: Padding<0xBD0>,
pub p_body_origin: IWzVector2D, //0x1140
}
impl CAvatar {
pub fn get_user(&self) -> &CUser {
unsafe {
let ptr = (self as *const CAvatar).byte_sub(0x88) as *mut CUser;
ptr.as_mut().unwrap()
}
}
}
holyshit,it is painful.
i don't know if this will have some changes,i mean about the reserve engineer support friendly.i just try it.