pub struct ZripDecoder { /* private fields */ }Available on
async_compression_unstable and crate feature zstd-zrip only.Implementations§
Source§impl ZripDecoder
impl ZripDecoder
pub fn new() -> Self
pub fn new_with_params(params: &[DParameter]) -> Self
pub fn new_with_dict(dictionary: &[u8]) -> Result<Self>
Trait Implementations§
Source§impl Debug for ZripDecoder
impl Debug for ZripDecoder
Source§impl DecodeV2 for ZripDecoder
impl DecodeV2 for ZripDecoder
Source§fn reinit(&mut self) -> Result<()>
fn reinit(&mut self) -> Result<()>
Reinitializes this decoder ready to decode a new member/frame of data.
Source§fn decode(
&mut self,
input: &mut PartialBuffer<&[u8]>,
output: &mut WriteBuffer<'_>,
) -> Result<bool>
fn decode( &mut self, input: &mut PartialBuffer<&[u8]>, output: &mut WriteBuffer<'_>, ) -> Result<bool>
Returns whether the end of the stream has been read
Auto Trait Implementations§
impl Forget for ZripDecoder
impl Freeze for ZripDecoder
impl Move for ZripDecoder
impl RefUnwindSafe for ZripDecoder
impl Send for ZripDecoder
impl Sync for ZripDecoder
impl Unpin for ZripDecoder
impl UnsafeUnpin for ZripDecoder
impl UnwindSafe for ZripDecoder
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
Source§impl<T> Decode for T
impl<T> Decode for T
Source§fn reinit(&mut self) -> Result<(), Error>
fn reinit(&mut self) -> Result<(), Error>
Reinitializes this decoder ready to decode a new member/frame of data.
Source§fn decode(
&mut self,
input: &mut PartialBuffer<impl AsRef<[u8]>>,
output: &mut PartialBuffer<impl AsRef<[u8]> + AsMut<[u8]>>,
) -> Result<bool, Error>
fn decode( &mut self, input: &mut PartialBuffer<impl AsRef<[u8]>>, output: &mut PartialBuffer<impl AsRef<[u8]> + AsMut<[u8]>>, ) -> Result<bool, Error>
Returns whether the end of the stream has been read