Home
last modified time | relevance | path

Searched refs:GzEncoder (Results 1 – 16 of 16) sorted by relevance

/external/rust/crates/flate2/src/gz/
Dread.rs41 pub struct GzEncoder<R> { struct
42 inner: bufread::GzEncoder<BufReader<R>>, argument
45 pub fn gz_encoder<R: Read>(inner: bufread::GzEncoder<BufReader<R>>) -> GzEncoder<R> { in gz_encoder()
46 GzEncoder { inner: inner } in gz_encoder()
49 impl<R: Read> GzEncoder<R> { implementation
57 pub fn new(r: R, level: Compression) -> GzEncoder<R> { in new()
62 impl<R> GzEncoder<R> { implementation
82 impl<R: Read> Read for GzEncoder<R> { implementation
88 impl<R: Read + Write> Write for GzEncoder<R> { implementation
Dwrite.rs39 pub struct GzEncoder<W: Write> { struct
46 pub fn gz_encoder<W: Write>(header: Vec<u8>, w: W, lvl: Compression) -> GzEncoder<W> { in gz_encoder() argument
47 GzEncoder { in gz_encoder()
55 impl<W: Write> GzEncoder<W> { impl
63 pub fn new(w: W, level: Compression) -> GzEncoder<W> { in new()
145 impl<W: Write> Write for GzEncoder<W> { implementation
162 impl<W: AsyncWrite> AsyncWrite for GzEncoder<W> { implementation
169 impl<R: Read + Write> Read for GzEncoder<R> { implementation
176 impl<R: AsyncRead + AsyncWrite> AsyncRead for GzEncoder<R> {} implementation
178 impl<W: Write> Drop for GzEncoder<W> { implementation
[all …]
Dmod.rs174 pub fn write<W: Write>(self, w: W, lvl: Compression) -> write::GzEncoder<W> { in write()
182 pub fn read<R: Read>(self, r: R, lvl: Compression) -> read::GzEncoder<R> { in read()
190 pub fn buf_read<R>(self, r: R, lvl: Compression) -> bufread::GzEncoder<R> in buf_read()
265 let mut e = write::GzEncoder::new(Vec::new(), Compression::default()); in roundtrip()
276 let e = write::GzEncoder::new(Vec::new(), Compression::default()); in roundtrip_zero()
287 let mut w = write::GzEncoder::new(Vec::new(), Compression::default()); in roundtrip_big()
304 let mut r = read::GzDecoder::new(read::GzEncoder::new(&v[..], Compression::default())); in roundtrip_big2()
329 let mut e = write::GzEncoder::new(Vec::new(), Compression::default()); in keep_reading_after_end()
345 let r = read::GzEncoder::new(&v[..], Compression::default()); in qc_reader()
355 let mut f = write::GzEncoder::new(Vec::new(), Compression::default()); in flush_after_write()
Dbufread.rs151 pub struct GzEncoder<R> { struct
158 pub fn gz_encoder<R: BufRead>(header: Vec<u8>, r: R, lvl: Compression) -> GzEncoder<R> { in gz_encoder() argument
160 GzEncoder { in gz_encoder()
168 impl<R: BufRead> GzEncoder<R> { impl
176 pub fn new(r: R, level: Compression) -> GzEncoder<R> { in new()
199 impl<R> GzEncoder<R> { implementation
232 impl<R: BufRead> Read for GzEncoder<R> { implementation
256 impl<R: BufRead + Write> Write for GzEncoder<R> { implementation
/external/rust/crates/flate2/src/
Dlib.rs133 pub use crate::gz::read::GzEncoder;
147 pub use crate::gz::write::GzEncoder;
160 pub use crate::gz::bufread::GzEncoder;
173 _assert_send_sync::<read::GzEncoder<&[u8]>>(); in _assert_send_sync()
180 _assert_send_sync::<write::GzEncoder<Vec<u8>>>(); in _assert_send_sync()
/external/rust/crates/flate2/examples/
Dgzencoder-write.rs3 use flate2::write::GzEncoder;
9 let mut e = GzEncoder::new(Vec::new(), Compression::default()); in main()
Dgzencoder-read.rs3 use flate2::read::GzEncoder;
17 let mut z = GzEncoder::new(&c[..], Compression::fast()); in gzencoder_read_hello_world()
Dgzencoder-bufread.rs3 use flate2::bufread::GzEncoder;
20 let mut gz = GzEncoder::new(b, Compression::fast()); in open_hello_world()
Dgzmultidecoder-bufread.rs4 use flate2::write::GzEncoder;
11 let mut e = GzEncoder::new(Vec::new(), Compression::default()); in main()
Dgzmultidecoder-read.rs4 use flate2::write::GzEncoder;
11 let mut e = GzEncoder::new(Vec::new(), Compression::default()); in main()
Dgzdecoder-bufread.rs4 use flate2::write::GzEncoder;
11 let mut e = GzEncoder::new(Vec::new(), Compression::default()); in main()
Dgzdecoder-read.rs4 use flate2::write::GzEncoder;
11 let mut e = GzEncoder::new(Vec::new(), Compression::default()); in main()
Dgzdecoder-write.rs3 use flate2::write::{GzDecoder, GzEncoder};
10 let mut e = GzEncoder::new(Vec::new(), Compression::default()); in main()
Dcompress_file.rs3 use flate2::write::GzEncoder;
18 let mut encoder = GzEncoder::new(output, Compression::default()); in main()
/external/rust/crates/flate2/tests/
Dearly-flush.rs6 use flate2::write::GzEncoder;
10 let mut w = GzEncoder::new(Vec::new(), flate2::Compression::default()); in smoke()
Dempty-read.rs35 let mut encoder = flate2::write::GzEncoder::new(Vec::new(), flate2::Compression::default()); in gzip_decoder_empty_read()
48 let mut encoder = flate2::read::GzEncoder::new(original, flate2::Compression::default()); in gzip_encoder_empty_read()