Struct goblin::elf::compression_header::compression_header64::CompressionHeader [−][src]
The compression header is used at the start of SHF_COMPRESSED sections
Fields
ch_type: u32
Compression format
ch_reserved: u32
ch_size: u64
Uncompressed data size
ch_addralign: u64
Uncompressed data alignment
Implementations
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 Clone for CompressionHeader
[src]
fn clone(&self) -> CompressionHeader
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for CompressionHeader
[src]
impl Debug for CompressionHeader
[src]
impl Default for CompressionHeader
[src]
fn default() -> CompressionHeader
[src]
impl Eq for CompressionHeader
[src]
impl From<CompressionHeader> for ElfCompressionHeader
[src]
fn from(ch: CompressionHeader) -> Self
[src]
impl From<CompressionHeader> for CompressionHeader
[src]
fn from(ch: ElfCompressionHeader) -> Self
[src]
impl PartialEq<CompressionHeader> for CompressionHeader
[src]
fn eq(&self, other: &CompressionHeader) -> bool
[src]
fn ne(&self, other: &CompressionHeader) -> bool
[src]
impl Plain for CompressionHeader
[src]
pub fn from_bytes(bytes: &[u8]) -> Result<&Self, Error>
[src]
pub fn slice_from_bytes(bytes: &[u8]) -> Result<&[Self], Error>
[src]
pub fn slice_from_bytes_len(bytes: &[u8], len: usize) -> Result<&[Self], Error>
[src]
pub fn from_mut_bytes(bytes: &mut [u8]) -> Result<&mut Self, Error>
[src]
pub fn slice_from_mut_bytes(bytes: &mut [u8]) -> Result<&mut [Self], Error>
[src]
pub fn slice_from_mut_bytes_len(
bytes: &mut [u8],
len: usize
) -> Result<&mut [Self], Error>
[src]
bytes: &mut [u8],
len: usize
) -> Result<&mut [Self], Error>
pub fn copy_from_bytes(&mut self, bytes: &[u8]) -> Result<(), Error>
[src]
impl SizeWith<Endian> for CompressionHeader
[src]
impl StructuralEq for CompressionHeader
[src]
impl StructuralPartialEq for CompressionHeader
[src]
impl<'a> TryFromCtx<'a, Endian, [u8]> for CompressionHeader where
CompressionHeader: 'a,
[src]
CompressionHeader: 'a,
type Error = Error
fn try_from_ctx(
src: &'a [u8],
ctx: Endian
) -> Result<(Self, usize), Self::Error>
[src]
src: &'a [u8],
ctx: Endian
) -> Result<(Self, usize), Self::Error>
impl<'a> TryIntoCtx<Endian, [u8]> for &'a CompressionHeader
[src]
type Error = Error
fn try_into_ctx(self, dst: &mut [u8], ctx: Endian) -> Result<usize, Self::Error>
[src]
impl TryIntoCtx<Endian, [u8]> for CompressionHeader
[src]
Auto Trait Implementations
impl RefUnwindSafe for CompressionHeader
impl Send for CompressionHeader
impl Sync for CompressionHeader
impl Unpin for CompressionHeader
impl UnwindSafe for CompressionHeader
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,