-
Notifications
You must be signed in to change notification settings - Fork 13.7k
Closed
Labels
C-cleanupCategory: PRs that clean code up or issues documenting cleanup.Category: PRs that clean code up or issues documenting cleanup.
Description
Address FIXMEs in core::io:
- Unbuffered operations?
- Make seekable orthogonal
- In reader::read_chars(), handle the case where eof occurs in the middle of a Unicode char
- In reader::read_char(), make sure it's valid to return -1
- In reader::read_le_uint, deal with EOF
- Improve forwarding implementation of reader
- Restructure top-level stdin() and file_reader()
- fileflags in buffered_file_writer()
- Make stdin, stdout, stderr consts
- Figure out why stdin() is different from stdout() and stderr()
- Optimize mem_buffer::write()
- Implement read_whole_file() in a low-level way
- Improve fsync::FILE_res_sync()
Metadata
Metadata
Assignees
Labels
C-cleanupCategory: PRs that clean code up or issues documenting cleanup.Category: PRs that clean code up or issues documenting cleanup.
Type
Projects
Milestone
Relationships
Development
Select code repository
Activity
Dretch commentedon Nov 3, 2012
In addition, io::WriterUtil has these methods but there are no corresponding read methods on io::ReaderUtil:
Merge pull request #4281 from Dretch/io-explicit-self
Convert core::io to use explicit self (for issue #4118 and issue #2004)
acertain commentedon Feb 18, 2013
Unbuffered operations please!
catamorphism commentedon May 14, 2013
Nominating for milestone 2 (backwards-compatible).
kud1ing commentedon May 21, 2013
The proposed changes look similar to what Go offers:
Closer
is the interface that wraps the basic Close method.Seeker
is the interface that wraps the basic Seek method.ReadAll
reads from r until an error or EOF and returns the data it read.kud1ing commentedon May 21, 2013
See also https://github.com/mozilla/rust/wiki/Lib-io#3-research-of-libraries-from-other-languages
graydon commentedon May 30, 2013
closing as WONTFIX due to #4248 and specifically #6169