Skip to content

Commit

Permalink
pe: expose original bytes field
Browse files Browse the repository at this point in the history
There's no reason to make it private, this enable a user to peek inside
the raw structure and perform more complicated reading without holding
the original bytes around.
  • Loading branch information
RaitoBezarius committed Jan 23, 2024
1 parent 9dafae0 commit ac83189
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pe/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ use log::debug;
/// An analyzed PE32/PE32+ binary
pub struct PE<'a> {
/// Underlying bytes
bytes: &'a [u8],
pub bytes: &'a [u8],
authenticode_excluded_sections: Option<authenticode::ExcludedSections>,
/// The PE header
pub header: header::Header,
Expand Down

0 comments on commit ac83189

Please sign in to comment.