pub struct CpioDecoder { /* private fields */ }Expand description
Incremental cpio decoder supporting newc, crc, odc and binary LE/BE.
Only the fixed header and pathname are retained. Regular payload bytes are borrowed directly from caller input.
Implementations§
Trait Implementations§
Source§impl ArchiveDecoder for CpioDecoder
impl ArchiveDecoder for CpioDecoder
Source§fn step<'a>(
&'a mut self,
input: &'a [u8],
_output: &'a mut [u8],
end: EndOfInput,
) -> Result<DecodeStep<'a>, ArchiveError>
fn step<'a>( &'a mut self, input: &'a [u8], _output: &'a mut [u8], end: EndOfInput, ) -> Result<DecodeStep<'a>, ArchiveError>
Consumes archive bytes and produces at most one structural event.
Auto Trait Implementations§
impl Freeze for CpioDecoder
impl RefUnwindSafe for CpioDecoder
impl Send for CpioDecoder
impl Sync for CpioDecoder
impl Unpin for CpioDecoder
impl UnsafeUnpin for CpioDecoder
impl UnwindSafe for CpioDecoder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more