pub struct PeSection {
pub name: String,
pub virtual_size: u32,
pub virtual_address: u32,
pub size_of_raw_data: u32,
pub pointer_to_raw_data: u32,
pub pointer_to_relocations: u32,
pub pointer_to_line_numbers: u32,
pub number_of_relocations: u16,
pub number_of_line_numbers: u16,
pub characteristics: u32,
pub data: Vec<u8>,
}Expand description
PE 节结构
包含 PE 文件中每个节的详细信息,包括节名、虚拟地址、大小等属性。 节是 PE 文件中的基本组织单位,不同的节包含不同类型的数据(如代码、数据、资源等)。
Fields§
§name: String节名称,最多8个字符
virtual_size: u32节在内存中的虚拟大小
virtual_address: u32节在内存中的虚拟地址
size_of_raw_data: u32节在文件中的原始数据大小
pointer_to_raw_data: u32节在文件中的原始数据指针
pointer_to_relocations: u32重定位表指针
pointer_to_line_numbers: u32行号表指针
number_of_relocations: u16重定位项数量
number_of_line_numbers: u16行号数量
characteristics: u32节特征标志
data: Vec<u8>节的原始数据
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PeSection
impl<'de> Deserialize<'de> for PeSection
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PeSection
impl RefUnwindSafe for PeSection
impl Send for PeSection
impl Sync for PeSection
impl Unpin for PeSection
impl UnwindSafe for PeSection
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more