Struct zstd::stream::raw::Decoder [−][src]
pub struct Decoder { /* fields omitted */ }An in-memory decoder for streams of data.
Implementations
impl Decoder[src]
impl Decoder[src]pub fn new() -> Result<Self>[src]
Creates a new decoder.
pub fn with_dictionary(dictionary: &[u8]) -> Result<Self>[src]
Creates a new decoder initialized with the given dictionary.
pub fn with_prepared_dictionary(
dictionary: &DecoderDictionary<'_>
) -> Result<Self>[src]
dictionary: &DecoderDictionary<'_>
) -> Result<Self>
Creates a new decoder, using an existing DecoderDictionary.
pub fn set_parameter(&mut self, parameter: DParameter) -> Result<()>[src]
Sets a decompression parameter for this decoder.
Trait Implementations
impl Operation for Decoder[src]
impl Operation for Decoder[src]fn run(
&mut self,
input: &mut InBuffer<'_>,
output: &mut OutBuffer<'_>
) -> Result<usize>[src]
&mut self,
input: &mut InBuffer<'_>,
output: &mut OutBuffer<'_>
) -> Result<usize>
fn reinit(&mut self) -> Result<()>[src]
fn finish(
&mut self,
_output: &mut OutBuffer<'_>,
finished_frame: bool
) -> Result<usize>[src]
&mut self,
_output: &mut OutBuffer<'_>,
finished_frame: bool
) -> Result<usize>