rust/library/std/src/sys_common
Tomasz Miąsko defa245624 Implement read_buf for a few more types
Implement read_buf for TcpStream, Stdin, StdinLock, ChildStdout,
ChildStderr (and internally for AnonPipe, Handle, Socket), so
that it skips buffer initialization.

The other provided methods like read_to_string and read_to_end are
implemented in terms of read_buf and so benefit from the optimization
as well.

This commit also implements read_vectored and is_read_vectored where
applicable.
2023-03-06 12:24:15 +01:00
..
memchr Move std::memchr to sys_common 2021-05-14 03:54:46 +02:00
net Match unmatched backticks in library/ 2023-03-03 03:03:29 +01:00
once std: optimize LazyLock size 2023-01-26 16:16:03 +01:00
thread_local_key avoid some int2ptr casts in thread_local_key tests 2022-08-11 09:39:25 -04:00
thread_parking Rollup merge of #107736 - tgross35:atomic-as-ptr, r=m-ou-se 2023-02-22 20:05:57 +01:00
wtf8 Remove is_known_utf8 checks from more tests where it's no longer set. 2022-06-23 13:10:47 -07:00
backtrace.rs Add QNX Neutrino support to libstd 2023-02-28 15:59:47 +01:00
fs.rs Hide Repr details from io::Error, and rework io::Error::new_const. 2022-02-04 18:47:29 -08:00
io.rs Update rand in the stdlib tests, and remove the getrandom feature from it 2023-01-04 14:52:41 -08:00
lazy_box.rs Leak pthreax_mutex_t when it's dropped while locked. 2022-06-16 12:09:12 +02:00
memchr.rs Move std::memchr to sys_common 2021-05-14 03:54:46 +02:00
mod.rs add support of RustyHermit's BSD socket layer 2023-02-24 15:30:14 +01:00
net.rs Implement read_buf for a few more types 2023-03-06 12:24:15 +01:00
process.rs More verbose Debug implementation of std::process:Command 2022-12-27 09:50:01 +01:00
tests.rs std: move "mod tests/benches" to separate files 2020-08-31 02:56:59 +00:00
thread_info.rs Merge two THREAD_INFO.with and following RefCell borrow 2021-09-16 15:24:53 +02:00
thread_local_dtor.rs refactor[std]: do not use box syntax 2023-01-17 14:08:35 +01:00
thread_local_key.rs Add QNX Neutrino support to libstd 2023-02-28 15:59:47 +01:00
thread.rs Relax memory ordering used in min_stack 2022-05-01 15:55:54 -07:00
wstr.rs Extract WStrUnits to sys_common::wstr 2022-11-28 21:17:08 +05:30
wtf8.rs Match unmatched backticks in library/ 2023-03-03 03:03:29 +01:00