mirror of
https://github.com/encounter/object.git
synced 2026-03-30 11:32:22 -07:00
read: add CoffSymbol::raw_symbol (#494)
This commit is contained in:
@@ -325,6 +325,14 @@ where
|
||||
pub(crate) symbol: &'data pe::ImageSymbol,
|
||||
}
|
||||
|
||||
impl<'data, 'file, R: ReadRef<'data>> CoffSymbol<'data, 'file, R> {
|
||||
#[inline]
|
||||
/// Get the raw `ImageSymbol` struct.
|
||||
pub fn raw_symbol(&self) -> &'data pe::ImageSymbol {
|
||||
self.symbol
|
||||
}
|
||||
}
|
||||
|
||||
impl<'data, 'file, R: ReadRef<'data>> read::private::Sealed for CoffSymbol<'data, 'file, R> {}
|
||||
|
||||
impl<'data, 'file, R: ReadRef<'data>> ObjectSymbol<'data> for CoffSymbol<'data, 'file, R> {
|
||||
|
||||
Reference in New Issue
Block a user