[][src]Struct goblin::elf::compression_header::compression_header32::CompressionHeader

#[repr(C)]
pub struct CompressionHeader {
    pub ch_type: u32,
    pub ch_size: u32,
    pub ch_addralign: u32,
}

The compression header is used at the start of SHF_COMPRESSED sections

Fields

ch_type: u32

Compression format

ch_size: u32

Uncompressed data size

ch_addralign: u32

Uncompressed data alignment

Methods

impl CompressionHeader[src]

pub fn from_bytes(bytes: &[u8]) -> CompressionHeader[src]

pub fn from_fd(fd: &mut File, offset: u64) -> Result<CompressionHeader>[src]

Trait Implementations

impl PartialEq<CompressionHeader> for CompressionHeader[src]

impl Copy for CompressionHeader[src]

impl Eq for CompressionHeader[src]

impl Default for CompressionHeader[src]

impl From<CompressionHeader> for ElfCompressionHeader[src]

impl From<CompressionHeader> for CompressionHeader[src]

impl Clone for CompressionHeader[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for CompressionHeader[src]

impl<'a> TryFromCtx<'a, Endian, [u8]> for CompressionHeader where
    CompressionHeader: 'a, 
[src]

type Error = Error

type Size = usize

impl<'a> TryIntoCtx<Endian, [u8]> for &'a CompressionHeader[src]

type Error = Error

type Size = usize

impl TryIntoCtx<Endian, [u8]> for CompressionHeader[src]

type Error = Error

type Size = usize

impl SizeWith<Endian> for CompressionHeader[src]

type Units = usize

impl Plain for CompressionHeader[src]

Auto Trait Implementations

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

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

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.

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

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

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