pub struct PeCoffBackend;Expand description
Parser backend for PE images and COFF objects.
Implementations§
Source§impl PeCoffBackend
impl PeCoffBackend
Sourcepub fn parse_with_pdb(
&self,
bytes: &[u8],
pdb_bytes: Option<&[u8]>,
) -> Result<ArtifactIr, ArtifactError>
pub fn parse_with_pdb( &self, bytes: &[u8], pdb_bytes: Option<&[u8]>, ) -> Result<ArtifactIr, ArtifactError>
Parse a PE or COFF artifact with an optional, already-read PDB.
A PDB is used only for a PE image that carries matching CodeView GUID
and age metadata. COFF objects have no corresponding image identity, so
a supplied PDB is rejected rather than guessed at.
§Errors
Returns an error when the input is another format, malformed, or the optional PDB does not match the PE image exactly enough to be evidence.
Trait Implementations§
Source§impl ArtifactBackend for PeCoffBackend
impl ArtifactBackend for PeCoffBackend
Source§fn format(&self) -> ArtifactFormat
fn format(&self) -> ArtifactFormat
Format this backend accepts.
Source§fn parse(&self, bytes: &[u8]) -> Result<ArtifactIr, ArtifactError>
fn parse(&self, bytes: &[u8]) -> Result<ArtifactIr, ArtifactError>
Parse bytes without executing the artifact. Read more
Source§fn capabilities(&self) -> ArtifactCapabilities
fn capabilities(&self) -> ArtifactCapabilities
Facts this backend can potentially provide for a well-formed input.
Source§impl Clone for PeCoffBackend
impl Clone for PeCoffBackend
Source§fn clone(&self) -> PeCoffBackend
fn clone(&self) -> PeCoffBackend
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PeCoffBackend
Source§impl Debug for PeCoffBackend
impl Debug for PeCoffBackend
Source§impl Default for PeCoffBackend
impl Default for PeCoffBackend
Source§fn default() -> PeCoffBackend
fn default() -> PeCoffBackend
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PeCoffBackend
impl RefUnwindSafe for PeCoffBackend
impl Send for PeCoffBackend
impl Sync for PeCoffBackend
impl Unpin for PeCoffBackend
impl UnsafeUnpin for PeCoffBackend
impl UnwindSafe for PeCoffBackend
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