[][src]Struct elf_utilities::section::Shdr64

#[repr(C)]pub struct Shdr64 {
    pub sh_name: Elf64Word,
    pub sh_type: Elf64Word,
    pub sh_flags: Elf64Xword,
    pub sh_addr: Elf64Addr,
    pub sh_offset: Elf64Off,
    pub sh_size: Elf64Xword,
    pub sh_link: Elf64Word,
    pub sh_info: Elf64Word,
    pub sh_addralign: Elf64Xword,
    pub sh_entsize: Elf64Xword,
}

Fields

sh_name: Elf64Wordsh_type: Elf64Wordsh_flags: Elf64Xwordsh_addr: Elf64Addrsh_offset: Elf64Offsh_size: Elf64Xwordsh_link: Elf64Wordsh_info: Elf64Wordsh_addralign: Elf64Xwordsh_entsize: Elf64Xword

Implementations

impl Shdr64[src]

pub fn size() -> Elf64Half[src]

pub fn get_type(&self) -> Type[src]

pub fn set_type(&mut self, ty: Type)[src]

pub fn to_le_bytes(&self) -> Vec<u8>[src]

Create Vec from this.

Examples

use elf_utilities::section::Shdr64;
let null_sct : Shdr64 = Default::default();

assert_eq!([0].repeat(Shdr64::size() as usize), null_sct.to_le_bytes());

pub fn deserialize(buf: &[u8], start: usize) -> Result<Self, Box<dyn Error>>[src]

Trait Implementations

impl Clone for Shdr64[src]

impl Copy for Shdr64[src]

impl Default for Shdr64[src]

impl<'de> Deserialize<'de> for Shdr64[src]

impl Eq for Shdr64[src]

impl Hash for Shdr64[src]

impl Ord for Shdr64[src]

impl PartialEq<Shdr64> for Shdr64[src]

impl PartialOrd<Shdr64> for Shdr64[src]

impl Serialize for Shdr64[src]

impl StructuralEq for Shdr64[src]

impl StructuralPartialEq for Shdr64[src]

Auto Trait Implementations

impl RefUnwindSafe for Shdr64

impl Send for Shdr64

impl Sync for Shdr64

impl Unpin for Shdr64

impl UnwindSafe for Shdr64

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.