Home
last modified time | relevance | path

Searched refs:read_to_string (Results 1 – 25 of 59) sorted by relevance

123

/external/rust/crates/futures/tests/
Dio_read_to_string.rs2 fn read_to_string() { in read_to_string() function
8 assert_eq!(block_on(c.read_to_string(&mut v)).unwrap(), 0); in read_to_string()
13 assert_eq!(block_on(c.read_to_string(&mut v)).unwrap(), 1); in read_to_string()
18 assert!(block_on(c.read_to_string(&mut v)).is_err()); in read_to_string()
46 assert_eq!(run(buf.read_to_string(&mut v)).unwrap(), 5); in interleave_pending()
/external/rust/crates/tokio/tests/
Dio_read_to_string.rs10 async fn read_to_string() { in read_to_string() function
14 let n = assert_ok!(rd.read_to_string(&mut buf).await); in read_to_string()
25 match AsyncReadExt::read_to_string(&mut data.as_slice(), &mut s).await { in to_string_does_not_truncate_on_utf8_error()
42 match AsyncReadExt::read_to_string(&mut mock, &mut s).await { in to_string_does_not_truncate_on_io_error()
57 let len = AsyncReadExt::read_to_string(&mut data.as_slice(), &mut s) in to_string_appends()
Dfs_link.rs30 reader.read_to_string(&mut content).unwrap(); in test_hard_link()
58 reader.read_to_string(&mut content).unwrap(); in test_symlink()
Dprocess_kill_on_drop.rs39 assert_ok!(out.read_to_string(&mut msg).await); in kill_on_drop()
/external/rust/crates/tokio/src/io/util/
Dasync_read_ext.rs12 use crate::io::util::read_to_string::{read_to_string, ReadToString};
1068 fn read_to_string<'a>(&'a mut self, dst: &'a mut String) -> ReadToString<'a, Self>
1072 read_to_string(self, dst)
/external/rust/crates/unicode-normalization/benches/
Dbench.rs86 let long = fs::read_to_string("benches/long.txt").unwrap(); in bench_nfc_long()
92 let long = fs::read_to_string("benches/long.txt").unwrap(); in bench_nfd_long()
108 let long = fs::read_to_string("benches/long.txt").unwrap(); in bench_nfkc_long()
114 let long = fs::read_to_string("benches/long.txt").unwrap(); in bench_nfkd_long()
/external/rust/crates/tokio/src/fs/
Dmod.rs60 mod read_to_string; module
61 pub use self::read_to_string::read_to_string;
Dread_to_string.rs23 pub async fn read_to_string(path: impl AsRef<Path>) -> io::Result<String> { in read_to_string() function
25 asyncify(move || std::fs::read_to_string(path)).await in read_to_string()
/external/rust/crates/flate2/src/gz/
Dmod.rs270 d.read_to_string(&mut s).unwrap(); in roundtrip()
280 d.read_to_string(&mut s).unwrap(); in roundtrip_zero()
334 d.read_to_string(&mut s).unwrap(); in keep_reading_after_end()
336 d.read_to_string(&mut s).unwrap(); in keep_reading_after_end()
/external/rust/cxx/gen/src/
Dmod.rs79 let source = match read_to_string(path) { in generate_from_path()
89 fn read_to_string(path: &Path) -> Result<String> { in read_to_string() function
/external/rust/crates/futures-util/src/io/
Dmod.rs113 mod read_to_string; module
114 pub use self::read_to_string::ReadToString;
318 fn read_to_string<'a>( in read_to_string() method
Dallow_std.rs118 fn read_to_string(&mut self, buf: &mut String) -> io::Result<usize> { in read_to_string() function
119 self.0.read_to_string(buf) in read_to_string()
/external/rust/crates/nix/test/
Dtest_sendfile.rs81 let bytes_read = rd.read_to_string(&mut read_string).unwrap(); in test_sendfile_freebsd()
126 let bytes_read = rd.read_to_string(&mut read_string).unwrap(); in test_sendfile_darwin()
/external/rust/crates/regex/examples/
Dshootout-regex-dna-replace.rs14 io::stdin().read_to_string(&mut seq).unwrap(); in main()
/external/rust/crates/flate2/tests/
Dearly-flush.rs18 r.read_to_string(&mut s).unwrap(); in smoke()
/external/rust/crates/syn/benches/
Dfile.rs27 let content = fs::read_to_string(FILE).unwrap(); in parse_file()
/external/rust/crates/flate2/examples/
Dgzdecoder-read.rs22 gz.read_to_string(&mut s)?; in decode_reader()
Ddeflatedecoder-bufread.rs22 deflater.read_to_string(&mut s)?; in decode_reader()
Dgzmultidecoder-bufread.rs22 gz.read_to_string(&mut s)?; in decode_reader()
Dgzmultidecoder-read.rs22 gz.read_to_string(&mut s)?; in decode_reader()
Ddeflatedecoder-read.rs22 deflater.read_to_string(&mut s)?; in decode_reader()
Dgzdecoder-bufread.rs22 gz.read_to_string(&mut s)?; in decode_reader()
Dzlibdecoder-bufread.rs22 z.read_to_string(&mut s)?; in decode_bufreader()
Dzlibdecoder-read.rs22 z.read_to_string(&mut s)?; in decode_reader()
/external/rust/crates/zip/examples/
Dextract_lorem.rs27 file.read_to_string(&mut contents).unwrap(); in real_main()

123