Function git_features::zlib::stream::inflate::read

source ·
pub fn read(
    rd: &mut impl BufRead,
    state: &mut Decompress,
    dst: &mut [u8]
) -> Result<usize>
Available on crate feature zlib only.
Expand description

Read bytes from rd and decompress them using state into a pre-allocated fitting buffer dst, returning the amount of bytes written.

Examples found in repository?
src/zlib/stream/inflate.rs (line 18)
17
18
19
    fn read(&mut self, into: &mut [u8]) -> io::Result<usize> {
        read(&mut self.inner, &mut self.decompressor, into)
    }