Struct exe::types::VSStringTable
source · [−]pub struct VSStringTable<'data> {
pub length: &'data u16,
pub value_length: &'data u16,
pub type_: &'data u16,
pub key: &'data [WChar],
pub children: Vec<VSString<'data>>,
}
Expand description
Represents a StringTable
structure.
Fields
length: &'data u16
value_length: &'data u16
type_: &'data u16
key: &'data [WChar]
children: Vec<VSString<'data>>
Implementations
sourceimpl<'data> VSStringTable<'data>
impl<'data> VSStringTable<'data>
sourcepub fn parse<P: PE>(pe: &'data P, rva: RVA) -> Result<Self, Error>
pub fn parse<P: PE>(pe: &'data P, rva: RVA) -> Result<Self, Error>
Parse a VSStringTable
structure at the given RVA.
sourcepub fn key_as_u32(&self) -> Result<u32, ParseIntError>
pub fn key_as_u32(&self) -> Result<u32, ParseIntError>
Grab the key data as a u32 value. Useful for grabbing the code page and language ID from the text representation.
sourcepub fn get_code_page(&self) -> Result<u16, ParseIntError>
pub fn get_code_page(&self) -> Result<u16, ParseIntError>
Grab the codepage value of this string table.
sourcepub fn get_lang_id(&self) -> Result<u16, ParseIntError>
pub fn get_lang_id(&self) -> Result<u16, ParseIntError>
Grab the codepage value of this string table.
Auto Trait Implementations
impl<'data> RefUnwindSafe for VSStringTable<'data>
impl<'data> Send for VSStringTable<'data>
impl<'data> Sync for VSStringTable<'data>
impl<'data> Unpin for VSStringTable<'data>
impl<'data> UnwindSafe for VSStringTable<'data>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more