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]

Creates a new instance of the file-decompiling service.

Starts a new decompilation with the given arguments.