Function migrate_v2

Source
pub fn migrate_v2<W: Write + Send + Sync + 'static, R: Read + Seek>(
    input_stream: Decoder<R>,
    bitreader: &mut BitReader<R, BigEndian>,
    output_stream: Encoder<W>,
) -> Result<Encoder<W>, Box<dyn Error>>
Expand description

Transforms an input stream to a new output stream with v2 of the codec.

§Arguments

  • input_stream: input stream to be migrated
  • bitreader: bitreader to be used for reading the input stream
  • output_stream: output stream to be written to

returns: Result<Encoder<W>, Box<dyn Error, Global>> where W is the type of the output stream