Home
last modified time | relevance | path

Searched refs:GzDecoder (Results 1 – 14 of 14) sorted by relevance

/external/rust/crates/flate2/src/gz/
Dread.rs133 pub struct GzDecoder<R> { struct
134 inner: bufread::GzDecoder<BufReader<R>>, argument
137 impl<R: Read> GzDecoder<R> { implementation
140 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> { impl
172 impl<R: Read> Read for GzDecoder<R> { implementation
179 impl<R: AsyncRead> AsyncRead for GzDecoder<R> {} implementation
181 impl<R: Read + Write> Write for GzDecoder<R> { implementation
[all …]
Dwrite.rs219 pub struct GzDecoder<W: Write> { struct
228 impl<W: Write> GzDecoder<W> { argument
233 pub fn new(w: W) -> GzDecoder<W> { in new()
234 GzDecoder { in new()
338 impl<W: Write> Write for GzDecoder<W> { implementation
389 impl<W: AsyncWrite> AsyncWrite for GzDecoder<W> { implementation
396 impl<W: Read + Write> Read for GzDecoder<W> { implementation
403 impl<W: AsyncRead + AsyncWrite> AsyncRead for GzDecoder<W> {} implementation
422 let mut decoder = GzDecoder::new(writer); in decode_writer_one_chunk()
438 let mut decoder = GzDecoder::new(writer); in decode_writer_partial_header()
[all …]
Dbufread.rs300 pub struct GzDecoder<R> { struct
351 impl<R: BufRead> GzDecoder<R> { impl
354 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> { implementation
411 impl<R: BufRead> Read for GzDecoder<R> { implementation
413 let GzDecoder { in read() localVariable
521 impl<R: AsyncRead + BufRead> AsyncRead for GzDecoder<R> {} implementation
523 impl<R: BufRead + Write> Write for GzDecoder<R> { implementation
[all …]
Dmod.rs268 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()
/external/rust/crates/flate2/src/
Dlib.rs132 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()
/external/rust/crates/flate2/tests/
Dgunzip.rs3 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()
Dearly-flush.rs5 use flate2::read::GzDecoder;
16 let mut r = GzDecoder::new(&bytes[..]); in smoke()
Dasync-reader.rs5 use flate2::read::{GzDecoder, MultiGzDecoder};
67 let fut = read_to_end(AssertAsync(GzDecoder::new(BadReader::new(f))), Vec::new()); in test_gz_asyncread()
Dempty-read.rs38 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()
/external/rust/crates/flate2/examples/
Dgzdecoder-bufread.rs3 use flate2::bufread::GzDecoder;
20 let mut gz = GzDecoder::new(&bytes[..]); in decode_reader()
Dgzdecoder-read.rs3 use flate2::read::GzDecoder;
20 let mut gz = GzDecoder::new(&bytes[..]); in decode_reader()
Dgzdecoder-write.rs3 use flate2::write::{GzDecoder, GzEncoder};
20 let mut decoder = GzDecoder::new(writer); in decode_writer()
/external/rust/crates/syn/tests/repo/
Dmod.rs5 use flate2::read::GzDecoder;
108 let decoder = GzDecoder::new(progress); in download_and_unpack()
/external/rust/crates/flate2/
DREADME.md43 use flate2::read::GzDecoder;
46 let mut d = GzDecoder::new("...".as_bytes());