Struct goblin::elf::compression_header::CompressionHeader [−][src]
A unified CompressionHeader - convertable to and from 32-bit and 64-bit variants
Fields
ch_type: u32
Compression format
ch_size: u64
Uncompressed data size
ch_addralign: u64
Uncompressed data alignment
Implementations
impl CompressionHeader
[src][−]
pub fn size(ctx: Ctx) -> usize
[src][−]
Return the size of the underlying compression header, given a container
pub fn new() -> Self
[src]
pub fn parse(bytes: &[u8], offset: usize, ctx: Ctx) -> Result<CompressionHeader>
[src][−]
Parse a compression header from bytes
at offset
, using the given ctx
Trait Implementations
impl Clone for CompressionHeader
[src][+]
impl Debug for CompressionHeader
[src][+]
impl Default for CompressionHeader
[src][+]
impl From<CompressionHeader> for ElfCompressionHeader
[src][+]
impl From<CompressionHeader> for CompressionHeader
[src][+]
impl From<CompressionHeader> for ElfCompressionHeader
[src][+]
impl From<CompressionHeader> for CompressionHeader
[src][+]
impl IntoCtx<Ctx, [u8]> for CompressionHeader
[src][+]
impl PartialEq<CompressionHeader> for CompressionHeader
[src][+]
impl SizeWith<Ctx> for CompressionHeader
[src][+]
impl StructuralPartialEq for CompressionHeader
[src]
impl<'a> TryFromCtx<'a, Ctx, [u8]> for CompressionHeader
[src][+]
impl TryIntoCtx<Ctx, [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,
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,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,