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.