From fa01bf36fc900adb23a4ccdfe858be789082c9b9 Mon Sep 17 00:00:00 2001 From: Raito Bezarius Date: Mon, 22 Jan 2024 23:37:49 +0100 Subject: [PATCH] pe: expose original `bytes` field 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. --- src/pe/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pe/mod.rs b/src/pe/mod.rs index 2336fddc5..895d43c32 100644 --- a/src/pe/mod.rs +++ b/src/pe/mod.rs @@ -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, /// The PE header pub header: header::Header,