/external/rust/crates/flate2/src/deflate/ |
D | read.rs | 41 pub struct DeflateEncoder<R> { struct 42 inner: bufread::DeflateEncoder<BufReader<R>>, argument 45 impl<R: Read> DeflateEncoder<R> { implementation 48 pub fn new(r: R, level: crate::Compression) -> DeflateEncoder<R> { in new() 49 DeflateEncoder { in new() 50 inner: bufread::DeflateEncoder::new(BufReader::new(r), level), in new() 55 impl<R> DeflateEncoder<R> { implementation 110 impl<R: Read> Read for DeflateEncoder<R> { implementation 117 impl<R: AsyncRead> AsyncRead for DeflateEncoder<R> {} implementation 119 impl<W: Read + Write> Write for DeflateEncoder<W> { implementation [all …]
|
D | bufread.rs | 45 pub struct DeflateEncoder<R> { struct 50 impl<R: BufRead> DeflateEncoder<R> { argument 53 pub fn new(r: R, level: crate::Compression) -> DeflateEncoder<R> { in new() 54 DeflateEncoder { in new() 61 pub fn reset_encoder_data<R>(zlib: &mut DeflateEncoder<R>) { in reset_encoder_data() 65 impl<R> DeflateEncoder<R> { implementation 113 impl<R: BufRead> Read for DeflateEncoder<R> { implementation 120 impl<R: AsyncRead + BufRead> AsyncRead for DeflateEncoder<R> {} implementation 122 impl<W: BufRead + Write> Write for DeflateEncoder<W> { implementation 133 impl<R: AsyncWrite + BufRead> AsyncWrite for DeflateEncoder<R> { implementation
|
D | mod.rs | 17 let mut w = write::DeflateEncoder::new(Vec::new(), Compression::default()); in roundtrip() 34 write::DeflateEncoder::new(&mut data, Compression::default()) in drop_writes() 46 let mut w = write::DeflateEncoder::new(Vec::new(), Compression::default()); in total_in() 72 read::DeflateDecoder::new(read::DeflateEncoder::new(&v[..], Compression::default())); in roundtrip2() 81 let mut w = write::DeflateEncoder::new( in roundtrip3() 93 let mut w = write::DeflateEncoder::new(Vec::new(), Compression::default()); in reset_writer() 99 let mut w = write::DeflateEncoder::new(Vec::new(), Compression::default()); in reset_writer() 109 let mut r = read::DeflateEncoder::new(&v[..], Compression::default()); in reset_reader() 114 let mut r = read::DeflateEncoder::new(&v[..], Compression::default()); in reset_reader() 122 let mut w = write::DeflateEncoder::new(Vec::new(), Compression::default()); in reset_decoder() [all …]
|
D | write.rs | 35 pub struct DeflateEncoder<W: Write> { struct 39 impl<W: Write> DeflateEncoder<W> { argument 45 pub fn new(w: W, level: crate::Compression) -> DeflateEncoder<W> { in new() 46 DeflateEncoder { in new() 159 impl<W: Write> Write for DeflateEncoder<W> { implementation 170 impl<W: AsyncWrite> AsyncWrite for DeflateEncoder<W> { implementation 177 impl<W: Read + Write> Read for DeflateEncoder<W> { implementation 184 impl<W: AsyncRead + AsyncWrite> AsyncRead for DeflateEncoder<W> {} implementation
|
/external/rust/crates/flate2/src/ |
D | lib.rs | 131 pub use crate::deflate::read::DeflateEncoder; 145 pub use crate::deflate::write::DeflateEncoder; 158 pub use crate::deflate::bufread::DeflateEncoder; 169 _assert_send_sync::<read::DeflateEncoder<&[u8]>>(); in _assert_send_sync() 176 _assert_send_sync::<write::DeflateEncoder<Vec<u8>>>(); in _assert_send_sync()
|
D | mem.rs | 610 write::DeflateEncoder::new(&mut deflate, comp) in reset()
|
/external/rust/crates/flate2/examples/ |
D | deflateencoder-write.rs | 3 use flate2::write::DeflateEncoder; 9 let mut e = DeflateEncoder::new(Vec::new(), Compression::default()); in main()
|
D | deflateencoder-read.rs | 3 use flate2::read::DeflateEncoder; 17 let mut deflater = DeflateEncoder::new(&c[..], Compression::fast()); in deflateencoder_read_hello_world()
|
D | deflateencoder-bufread.rs | 3 use flate2::bufread::DeflateEncoder; 20 let mut deflater = DeflateEncoder::new(b, Compression::fast()); in open_hello_world()
|
D | deflatedecoder-read.rs | 4 use flate2::write::DeflateEncoder; 11 let mut e = DeflateEncoder::new(Vec::new(), Compression::default()); in main()
|
D | deflatedecoder-bufread.rs | 4 use flate2::write::DeflateEncoder; 11 let mut e = DeflateEncoder::new(Vec::new(), Compression::default()); in main()
|
D | deflatedecoder-write.rs | 4 use flate2::write::DeflateEncoder; 11 let mut e = DeflateEncoder::new(Vec::new(), Compression::default()); in main()
|
/external/rust/crates/flate2/tests/ |
D | zero-write.rs | 6 let writer = flate2::write::DeflateEncoder::new(&mut buf[..], flate2::Compression::default()); in zero_write_is_error()
|
D | empty-read.rs | 9 flate2::write::DeflateEncoder::new(Vec::new(), flate2::Compression::default()); in deflate_decoder_empty_read() 22 let mut encoder = flate2::read::DeflateEncoder::new(original, flate2::Compression::default()); in deflate_encoder_empty_read()
|
D | tokio.rs | 63 let b = write::DeflateEncoder::new(b, Compression::default()); in tcp_stream_echo_pattern() 119 let b = write::DeflateEncoder::new(b, Compression::default()); in echo_random()
|
/external/rust/crates/zip/src/ |
D | write.rs | 20 use flate2::write::DeflateEncoder; 33 Deflater(DeflateEncoder<W>), 550 CompressionMethod::Deflated => GenericZipWriter::Deflater(DeflateEncoder::new( in switch_to()
|
/external/rust/crates/flate2/src/gz/ |
D | bufread.rs | 152 inner: deflate::bufread::DeflateEncoder<CrcReader<R>>, 161 inner: deflate::bufread::DeflateEncoder::new(crc, lvl), in gz_encoder()
|