summaryrefslogtreecommitdiffstats
path: root/third_party/rust/goblin/src/pe/options.rs
blob: 5fea632f759f297af0332da0c145f5759aae4593 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/// Parsing Options structure for the PE parser
#[derive(Debug, Copy, Clone)]
pub struct ParseOptions {
    /// Wether the parser should resolve rvas or not. Default: true
    pub resolve_rva: bool,
}

impl ParseOptions {
    /// Returns a parse options structure with default values
    pub fn default() -> Self {
        ParseOptions { resolve_rva: true }
    }
}