Struct retdec::decompiler::Decompiler
[−]
[src]
pub struct Decompiler { /* fields omitted */ }
File-decompiling service.
Examples
use retdec::decompilation::DecompilationArguments; use retdec::decompiler::Decompiler; use retdec::file::File; use retdec::settings::Settings; let settings = Settings::new() .with_api_key("MY-API-KEY"); let decompiler = Decompiler::new(settings); let args = DecompilationArguments::new() .with_input_file(File::from_path("file.exe")?); let mut decompilation = decompiler.start_decompilation(args)?; decompilation.wait_until_finished()?; let output_code = decompilation.get_output_hll_code()?; print!("{}", output_code);
Methods
impl Decompiler
[src]
fn new(settings: Settings) -> Self
Creates a new instance of the file-decompiling service.
fn start_decompilation(
&self,
args: DecompilationArguments
) -> Result<Decompilation>
&self,
args: DecompilationArguments
) -> Result<Decompilation>
Starts a new decompilation with the given arguments.