Skip to main content

decompile

Function decompile 

Source
pub fn decompile(ea: u64) -> Result<UniquePtr<CFunc>, Exception>
Expand description

Decompile the function at ea into a heap cfuncptr_t owned by a UniquePtr (one owned ref); Err on any decompile failure. Wrapped in the facade trap, so a fatal exit() surfaces as a trapped Err the caller distinguishes via its own trap query. The UniquePtr’s cxx deleter runs ~cfuncptr_t (release()) on drop.