/// Creates a new encoder which will have its output written to the given
/// output stream. The output stream can be re-acquired by calling
/// `finish()`
Creates a new encoder which will have its output written to the given
output stream. The output stream can be re-acquired by calling
`finish()`
Creates a new encoder which will have its output written to the given output stream . The output stream can be re - acquired by calling ` finish () `
pub fn new(r: R) -> IoResult<Decoder<R>> {
        Ok(Decoder {
            r,
            c: DecoderContext::new()?,
            buf: vec![0; BUFFER_SIZE].into_boxed_slice(),
            pos: BUFFER_SIZE,
            len: BUFFER_SIZE,
            // Minimal LZ4 stream size
            next: 11,
        })
    }
pub fn new ( r : R ) -> IoResult < Decoder < R > > { Ok ( Decoder { r , c : DecoderContext :: new ( ) ? , buf : vec ! [ 0 BUFFER_SIZE ] . into_boxed_slice ( ) , pos : BUFFER_SIZE , len : BUFFER_SIZE , // Minimal LZ4 stream size next : 11 , } ) }
Creates a new encoder which will have its output written to the given
output stream.
Creates a new encoder which will have its output written to the given output stream .
r
R