pub struct ResourceString {
pub length: HeaderField<u16>,
pub value: HeaderField<String>,
}Fields§
§length: HeaderField<u16>§value: HeaderField<String>Implementations§
Source§impl ResourceString
impl ResourceString
pub fn fix_rvas(&mut self, sections: &SectionTable) -> Result<()>
Trait Implementations§
Source§impl Debug for ResourceString
impl Debug for ResourceString
Source§impl Default for ResourceString
impl Default for ResourceString
Source§fn default() -> ResourceString
fn default() -> ResourceString
Returns the “default value” for a type. Read more
Source§impl Display for ResourceString
impl Display for ResourceString
Source§impl From<&ResourceString> for ResourceStringValue
impl From<&ResourceString> for ResourceStringValue
Source§fn from(value: &ResourceString) -> Self
fn from(value: &ResourceString) -> Self
Converts to this type from the input type.
Source§impl Header for ResourceString
impl Header for ResourceString
fn parse_bytes(bytes: Vec<u8>, pos: u64) -> Result<Self>where
Self: Sized,
Source§fn parse_buf(
reader: &mut impl BufReadExt,
pos: u64,
offset: u64,
) -> Result<Self>where
Self: Sized,
fn parse_buf(
reader: &mut impl BufReadExt,
pos: u64,
offset: u64,
) -> Result<Self>where
Self: Sized,
Parse from an instance of
BufReadExt.
will read Self::length() bytes from offset and
will use pos for calculating field offset and rva.fn is_valid(&self) -> bool
fn length() -> usize
Auto Trait Implementations§
impl Freeze for ResourceString
impl RefUnwindSafe for ResourceString
impl Send for ResourceString
impl Sync for ResourceString
impl Unpin for ResourceString
impl UnwindSafe for ResourceString
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