Searched refs:GzDecoder (Results 1 – 14 of 14) sorted by relevance
133 pub struct GzDecoder<R> { struct134 inner: bufread::GzDecoder<BufReader<R>>, argument137 impl<R: Read> GzDecoder<R> { implementation140 pub fn new(r: R) -> GzDecoder<R> { in new()141 GzDecoder { in new()142 inner: bufread::GzDecoder::new(BufReader::new(r)), in new()147 impl<R> GzDecoder<R> { impl172 impl<R: Read> Read for GzDecoder<R> { implementation179 impl<R: AsyncRead> AsyncRead for GzDecoder<R> {} implementation181 impl<R: Read + Write> Write for GzDecoder<R> { implementation[all …]
219 pub struct GzDecoder<W: Write> { struct228 impl<W: Write> GzDecoder<W> { argument233 pub fn new(w: W) -> GzDecoder<W> { in new()234 GzDecoder { in new()338 impl<W: Write> Write for GzDecoder<W> { implementation389 impl<W: AsyncWrite> AsyncWrite for GzDecoder<W> { implementation396 impl<W: Read + Write> Read for GzDecoder<W> { implementation403 impl<W: AsyncRead + AsyncWrite> AsyncRead for GzDecoder<W> {} implementation422 let mut decoder = GzDecoder::new(writer); in decode_writer_one_chunk()438 let mut decoder = GzDecoder::new(writer); in decode_writer_partial_header()[all …]
300 pub struct GzDecoder<R> { struct351 impl<R: BufRead> GzDecoder<R> { impl354 pub fn new(mut r: R) -> GzDecoder<R> { in new()372 GzDecoder { in new()380 fn multi(mut self, flag: bool) -> GzDecoder<R> { in multi()386 impl<R> GzDecoder<R> { implementation411 impl<R: BufRead> Read for GzDecoder<R> { implementation413 let GzDecoder { in read() localVariable521 impl<R: AsyncRead + BufRead> AsyncRead for GzDecoder<R> {} implementation523 impl<R: BufRead + Write> Write for GzDecoder<R> { implementation[all …]
268 let mut d = read::GzDecoder::new(&inner[..]); in roundtrip()278 let mut d = read::GzDecoder::new(&inner[..]); in roundtrip_zero()295 let mut r = read::GzDecoder::new(&result[..]); in roundtrip_big()304 let mut r = read::GzDecoder::new(read::GzEncoder::new(&v[..], Compression::default())); in roundtrip_big2()318 let mut d = read::GzDecoder::new(e); in fields()332 let mut d = read::GzDecoder::new(&inner[..]); in keep_reading_after_end()346 let mut r = read::GzDecoder::new(r); in qc_reader()
132 pub use crate::gz::read::GzDecoder;146 pub use crate::gz::write::GzDecoder;159 pub use crate::gz::bufread::GzDecoder;174 _assert_send_sync::<read::GzDecoder<&[u8]>>(); in _assert_send_sync()181 _assert_send_sync::<write::GzDecoder<Vec<u8>>>(); in _assert_send_sync()
3 use flate2::read::GzDecoder;56 GzDecoder::new(f).read_to_end(&mut v)?; in extract_file()72 let cbjson = GzDecoder::new(data); in empty_error_once()
5 use flate2::read::GzDecoder;16 let mut r = GzDecoder::new(&bytes[..]); in smoke()
5 use flate2::read::{GzDecoder, MultiGzDecoder};67 let fut = read_to_end(AssertAsync(GzDecoder::new(BadReader::new(f))), Vec::new()); in test_gz_asyncread()
38 let mut decoder = flate2::read::GzDecoder::new(encoded.as_slice()); in gzip_decoder_empty_read()52 let mut decoder = flate2::read::GzDecoder::new(encoded.as_slice()); in gzip_encoder_empty_read()
3 use flate2::bufread::GzDecoder;20 let mut gz = GzDecoder::new(&bytes[..]); in decode_reader()
3 use flate2::read::GzDecoder;20 let mut gz = GzDecoder::new(&bytes[..]); in decode_reader()
3 use flate2::write::{GzDecoder, GzEncoder};20 let mut decoder = GzDecoder::new(writer); in decode_writer()
5 use flate2::read::GzDecoder;108 let decoder = GzDecoder::new(progress); in download_and_unpack()
43 use flate2::read::GzDecoder;46 let mut d = GzDecoder::new("...".as_bytes());