summary refs log tree commit diff
path: root/library/std/src/io/util
AgeCommit message (Collapse)AuthorLines
2023-06-17Extend io::copy buffer reuse to BufReader tooThe 8472-60/+1
previously it was only able to use BufWriter. This was due to a limitation in the BufReader generics that prevented specialization. This change works around the issue by using `where Self: Read` instead of `where I: Read`. This limits our options, e.g. we can't access BufRead methods, but it happens to work out if we rely on some implementation details.
2022-08-05non-linux platformsNick Cameron-5/+5
Signed-off-by: Nick Cameron <nrc@ncameron.org>
2022-08-04std::io: migrate ReadBuf to BorrowBuf/BorrowCursorNick Cameron-24/+24
Signed-off-by: Nick Cameron <nrc@ncameron.org>
2021-11-02read_bufDrMeepster-1/+28
2021-01-31specialize io::copy to use the memory of the writer if it is a BufWriterThe8472-1/+49
2021-01-30impl Seek for Emptyoberien-1/+21
Fix #78029
2020-11-06Make some std::io functions `const`BenoƮt du Garreau-1/+8
Includes: - io::Cursor::new - io::Cursor::get_ref - io::Cursor::position - io::empty - io::repeat - io::sink
2020-08-31std: move "mod tests/benches" to separate filesLzu Tao-0/+45
Also doing fmt inplace as requested.