-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add read_full to std::io::ReadExt #23174
Comments
Needs an RFC. This was previously rejected because the EOF handling and the functions built on top of it were fucked up. This has been fixed so it might work now. |
novalis
added a commit
to novalis/rust
that referenced
this issue
Mar 20, 2015
In the event of EOF, read_all returns a result with the new error ShortRead(number of bytes successfully read). Fixes rust-lang#23174
This
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Since the
read
function ofstd::io::Read
may read less than the length of the buffer passed to it, adding a function namedread_full
which callsread
in a loop until the buffer is filled can be useful.The text was updated successfully, but these errors were encountered: