Struct retdec::fileinfo::Fileinfo [] [src]

pub struct Fileinfo { /* fields omitted */ }

File-analyzing service.

Examples

use retdec::analysis::AnalysisArguments;
use retdec::file::File;
use retdec::fileinfo::Fileinfo;
use retdec::settings::Settings;

let settings = Settings::new()
    .with_api_key("MY-API-KEY");
let fileinfo = Fileinfo::new(settings);
let args = AnalysisArguments::new()
    .with_input_file(File::from_path("file.exe")?);
let mut analysis = fileinfo.start_analysis(args)?;
analysis.wait_until_finished()?;
let output = analysis.get_output()?;
print!("{}", output);

Methods

impl Fileinfo
[src]

Creates a new instance of the file-analyzing service.

Starts a new file analysis with the given arguments.