Home
last modified time | relevance | path

Searched refs:read_to_end (Results 1 – 25 of 53) sorted by relevance

123

/external/rust/crates/tokio/src/io/util/
Dmod.rs53 mod read_to_end;
56 pub(crate) use read_to_end::read_to_end;
91 mod read_to_end;
93 pub(crate) use read_to_end::read_to_end;
Dasync_read_ext.rs11 use crate::io::util::read_to_end::{read_to_end, ReadToEnd};
1021 fn read_to_end<'a>(&'a mut self, buf: &'a mut Vec<u8>) -> ReadToEnd<'a, Self>
1025 read_to_end(self, buf)
/external/rust/crates/flate2/tests/
Dempty-read.rs15 decoder.read_to_end(&mut decoded).unwrap(); in deflate_decoder_empty_read()
25 encoder.read_to_end(&mut encoded).unwrap(); in deflate_encoder_empty_read()
28 decoder.read_to_end(&mut decoded).unwrap(); in deflate_encoder_empty_read()
41 decoder.read_to_end(&mut decoded).unwrap(); in gzip_decoder_empty_read()
51 encoder.read_to_end(&mut encoded).unwrap(); in gzip_encoder_empty_read()
54 decoder.read_to_end(&mut decoded).unwrap(); in gzip_encoder_empty_read()
67 decoder.read_to_end(&mut decoded).unwrap(); in zlib_decoder_empty_read()
77 encoder.read_to_end(&mut encoded).unwrap(); in zlib_encoder_empty_read()
80 decoder.read_to_end(&mut decoded).unwrap(); in zlib_encoder_empty_read()
Dasync-reader.rs11 use tokio_io::io::read_to_end;
67 let fut = read_to_end(AssertAsync(GzDecoder::new(BadReader::new(f))), Vec::new()); in test_gz_asyncread()
73 .read_to_end(&mut expected) in test_gz_asyncread()
83 let fut = read_to_end( in test_multi_gz_asyncread()
92 .read_to_end(&mut expected) in test_multi_gz_asyncread()
Dgunzip.rs17 .read_to_end(&mut expected) in test_extract_success()
47 .read_to_end(&mut expected) in test_extract_success_multi()
56 GzDecoder::new(f).read_to_end(&mut v)?; in extract_file()
65 MultiGzDecoder::new(f).read_to_end(&mut v)?; in extract_file_multi()
/external/rust/crates/flate2/src/deflate/
Dmod.rs27 r.read_to_end(&mut ret).unwrap(); in roundtrip()
39 r.read_to_end(&mut ret).unwrap(); in drop_writes()
63 r.read_to_end(&mut ret).unwrap(); in total_in()
74 r.read_to_end(&mut ret).unwrap(); in roundtrip2()
110 r.read_to_end(&mut a).unwrap(); in reset_reader()
112 r.read_to_end(&mut b).unwrap(); in reset_reader()
115 r.read_to_end(&mut c).unwrap(); in reset_reader()
129 r.read_to_end(&mut a).unwrap(); in reset_decoder()
131 r.read_to_end(&mut b).unwrap(); in reset_decoder()
134 r.read_to_end(&mut c).unwrap(); in reset_decoder()
[all …]
/external/rust/crates/flate2/src/zlib/
Dmod.rs28 r.read_to_end(&mut ret).unwrap(); in roundtrip()
40 r.read_to_end(&mut ret).unwrap(); in drop_writes()
64 r.read_to_end(&mut ret).unwrap(); in total_in()
74 r.read_to_end(&mut ret).unwrap(); in roundtrip2()
98 r.read_to_end(&mut a).unwrap(); in reset_decoder()
100 r.read_to_end(&mut b).unwrap(); in reset_decoder()
103 r.read_to_end(&mut c).unwrap(); in reset_decoder()
141 r.read_to_end(&mut v2).unwrap(); in qc_reader()
/external/rust/crates/tokio/tests/
Dio_read_to_end.rs10 async fn read_to_end() { in read_to_end() function
14 let n = assert_ok!(rd.read_to_end(&mut buf).await); in read_to_end()
76 test.read_to_end(&mut buf).await.unwrap(); in read_to_end_uninit()
Dio_copy_bidirectional.rs76 b.read_to_end(&mut Vec::new()).await.unwrap(); in test_transfer_after_close()
104 b.read_to_end(&mut buf).await.unwrap(); in blocking_one_side_does_not_block_other()
Dio_chain.rs14 assert_ok!(rd.read_to_end(&mut buf).await); in chain()
Duds_split.rs41 read.read_to_end(&mut output).await?; in send_recv_all()
/external/rust/crates/flate2/src/gz/
Dmod.rs297 r.read_to_end(&mut v).unwrap(); in roundtrip_big()
306 r.read_to_end(&mut res).unwrap(); in roundtrip_big2()
323 d.read_to_end(&mut res).unwrap(); in fields()
348 r.read_to_end(&mut v2).unwrap(); in qc_reader()
/external/rust/crates/nix/test/sys/
Dtest_aio.rs333 let len = f.read_to_end(&mut rbuf).unwrap(); in test_write()
363 let len = f.read_to_end(&mut rbuf).unwrap(); in test_write_bytes()
421 let len = f.read_to_end(&mut rbuf).unwrap(); in test_write_from_pointer()
486 let len = f.read_to_end(&mut rbuf).unwrap(); in test_write_sigev_signal()
533 let len = f.read_to_end(&mut rbuf2).unwrap(); in test_liocb_listio_wait()
582 let len = f.read_to_end(&mut rbuf2).unwrap(); in test_liocb_listio_nowait()
641 let len = f.read_to_end(&mut rbuf2).unwrap(); in test_liocb_listio_signal()
/external/rust/crates/futures-util/src/io/
Dmod.rs110 mod read_to_end; module
111 pub use self::read_to_end::ReadToEnd;
290 fn read_to_end<'a>( in read_to_end() method
Dallow_std.rs115 fn read_to_end(&mut self, buf: &mut Vec<u8>) -> io::Result<usize> { in read_to_end() function
116 self.0.read_to_end(buf) in read_to_end()
/external/rust/crates/flate2/examples/
Ddeflateencoder-bufread.rs22 deflater.read_to_end(&mut buffer)?; in open_hello_world()
Dgzencoder-bufread.rs22 gz.read_to_end(&mut buffer)?; in open_hello_world()
Dzlibencoder-bufread.rs22 z.read_to_end(&mut buffer)?; in open_hello_world()
/external/flatbuffers/tests/rust_usage_test/bin/
Dmonster_example.rs22 f.read_to_end(&mut buf).expect("file reading failed"); in main()
/external/rust/crates/bytes/tests/
Dtest_reader.rs14 buf.reader().read_to_end(&mut buffer).unwrap(); in read()
/external/rust/crates/nix/test/test_kmod/
Dmod.rs91 f.read_to_end(&mut contents) in test_init_and_delete_module()
111 f.read_to_end(&mut contents) in test_init_and_delete_module_with_params()
/external/rust/crates/zip/tests/
Dzip_crypto.rs82 file.read_to_end(&mut data).unwrap(); in encrypted_file()
/external/rust/crates/futures/tests/
Dio_read_to_end.rs62 read.read_to_end(&mut vec.inner).await.unwrap(); in issue2310()
/external/rust/crates/tokio/src/process/
Dmod.rs1088 async fn read_to_end<A: AsyncRead + Unpin>(io: Option<A>) -> io::Result<Vec<u8>> { in wait_with_output() function
1091 crate::io::util::read_to_end(&mut io, &mut vec).await?; in wait_with_output()
1096 let stdout_fut = read_to_end(self.stdout.take()); in wait_with_output()
1097 let stderr_fut = read_to_end(self.stderr.take()); in wait_with_output()
/external/rust/crates/csv/examples/
Dtutorial-perf-core-01.rs65 if let Err(err) = io::stdin().read_to_end(&mut data) { in main()

123