pub struct ZstdDecoder<'ctx, 'input> { /* private fields */ }Expand description
One decoder and its live workspace reservation. The decoder is dropped before the reservation that admits its allocation.
Implementations§
Source§impl ZstdDecoder<'_, '_>
impl ZstdDecoder<'_, '_>
Sourcepub fn read_chunk(&mut self, bytes: &mut [u8]) -> Result<usize, CodecError>
pub fn read_chunk(&mut self, bytes: &mut [u8]) -> Result<usize, CodecError>
Reads admitted output into caller-owned storage and charges step/copy work.
Auto Trait Implementations§
impl<'ctx, 'input> !RefUnwindSafe for ZstdDecoder<'ctx, 'input>
impl<'ctx, 'input> !Send for ZstdDecoder<'ctx, 'input>
impl<'ctx, 'input> !Sync for ZstdDecoder<'ctx, 'input>
impl<'ctx, 'input> !UnwindSafe for ZstdDecoder<'ctx, 'input>
impl<'ctx, 'input> Freeze for ZstdDecoder<'ctx, 'input>
impl<'ctx, 'input> Unpin for ZstdDecoder<'ctx, 'input>
impl<'ctx, 'input> UnsafeUnpin for ZstdDecoder<'ctx, 'input>
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