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

#[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: Elf64Word

Section name, index in string tbl

sh_type: Elf64Word

Type of section

sh_flags: Elf64Xword

Miscellaneous section attributes

sh_addr: Elf64Addr

Section virtual addr at execution

sh_offset: Elf64Off

Section file offset

sh_size: Elf64Xword

Size of section in bytes

sh_link: Elf64Word

Index of another section

sh_info: Elf64Word

Additional section information

sh_addralign: Elf64Xword

Section alignment

sh_entsize: Elf64Xword

Entry size if section holds table

Implementations

impl Shdr64[src]

pub const SIZE: usize[src]

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

pub fn get_flags(&self) -> HashSet<Flag>[src]

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

pub fn set_flags<'a, I>(&mut self, flags: I) where
    I: Iterator<Item = &'a Flag>, 
[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), null_sct.to_le_bytes());

Trait Implementations

impl Clone for Shdr64[src]

impl Copy for Shdr64[src]

impl Debug 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 Into<Shdr64> for ShdrPreparation64[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.