pub struct DllReader<R> { /* private fields */ }Expand description
DLL 结构,惰性读取器
Implementations§
Trait Implementations§
Source§impl<R: Read + Seek> PeReader<R> for DllReader<R>
impl<R: Read + Seek> PeReader<R> for DllReader<R>
Source§fn get_viewer(&mut self) -> &mut R
fn get_viewer(&mut self) -> &mut R
获取二进制读取器的可变引用
Source§fn add_diagnostics(&mut self, error: impl Into<GaiaError>)
fn add_diagnostics(&mut self, error: impl Into<GaiaError>)
获取诊断信息的可变引用
Source§fn get_section_headers(&mut self) -> Result<&[SectionHeader], GaiaError>
fn get_section_headers(&mut self) -> Result<&[SectionHeader], GaiaError>
获取缓存的节头信息
Source§fn set_section_headers(
&mut self,
headers: Vec<SectionHeader>,
) -> Vec<SectionHeader>
fn set_section_headers( &mut self, headers: Vec<SectionHeader>, ) -> Vec<SectionHeader>
设置缓存的节头信息
fn set_pe_header(&mut self, head: PeHeader) -> Option<PeHeader>
fn set_program(&mut self, program: PeProgram) -> Option<PeProgram>
fn get_position(&mut self) -> Result<u64, GaiaError>where
R: Seek,
fn set_position(&mut self, offset: u64) -> Result<u64, GaiaError>where
R: Seek,
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 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>
解析导出表(通用实现)
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