pub struct DllReader<R> { /* private fields */ }Expand description
DLL 结构,惰性读取器
Implementations§
Trait Implementations§
Source§impl<W: Read + Seek> PeReader<W> for DllReader<W>
impl<W: Read + Seek> PeReader<W> for DllReader<W>
Source§fn get_viewer(&mut self) -> &mut BinaryReader<W, LittleEndian>
fn get_viewer(&mut self) -> &mut BinaryReader<W, LittleEndian>
获取二进制读取器的可变引用
Source§fn add_diagnostics(&mut self, error: impl Into<GaiaError>)
fn add_diagnostics(&mut self, error: impl Into<GaiaError>)
获取诊断信息的可变引用
Source§fn get_cached_section_headers(&self) -> Option<&Vec<SectionHeader>>
fn get_cached_section_headers(&self) -> Option<&Vec<SectionHeader>>
获取缓存的节头信息
Source§fn set_cached_section_headers(&mut self, headers: Vec<SectionHeader>)
fn set_cached_section_headers(&mut self, headers: Vec<SectionHeader>)
设置缓存的节头信息
Source§fn read_section_headers(&mut self) -> Result<Vec<SectionHeader>, GaiaError>
fn read_section_headers(&mut self) -> Result<Vec<SectionHeader>, GaiaError>
读取节头信息(通用实现)
Source§fn rva_to_file_offset(
&self,
rva: u32,
sections: &[PeSection],
) -> Result<u32, GaiaError>
fn rva_to_file_offset( &self, rva: u32, sections: &[PeSection], ) -> Result<u32, GaiaError>
将 RVA 转换为文件偏移(通用实现)
Source§fn read_section_from_header(
&mut self,
header: &SectionHeader,
) -> Result<PeSection, GaiaError>
fn read_section_from_header( &mut self, header: &SectionHeader, ) -> Result<PeSection, GaiaError>
从节头读取节数据(通用实现)
Source§fn parse_import_table(
&mut self,
header: &PeHeader,
sections: &[PeSection],
) -> Result<ImportTable, GaiaError>
fn parse_import_table( &mut self, header: &PeHeader, sections: &[PeSection], ) -> Result<ImportTable, GaiaError>
解析导入表(通用实现)
Source§fn parse_export_table(
&mut self,
header: &PeHeader,
sections: &[PeSection],
) -> Result<ExportTable, GaiaError>
fn parse_export_table( &mut self, header: &PeHeader, sections: &[PeSection], ) -> Result<ExportTable, GaiaError>
解析导出表(通用实现)
fn read_program_force(&mut self) -> Result<PeProgram, GaiaError>
Auto Trait Implementations§
impl<R> Freeze for DllReader<R>where
R: Freeze,
impl<R> !RefUnwindSafe for DllReader<R>
impl<R> Send for DllReader<R>where
R: Send,
impl<R> Sync for DllReader<R>where
R: Sync,
impl<R> Unpin for DllReader<R>where
R: Unpin,
impl<R> !UnwindSafe for DllReader<R>
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