-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Add read_buf
equivalents for positioned reads
#140459
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
base: master
Are you sure you want to change the base?
Conversation
This comment has been minimized.
This comment has been minimized.
Adds the following items under the `read_buf` (rust-lang#78485) feature: - `std::os::unix::FileExt::read_buf_at` - `std::os::unix::FileExt::read_buf_exact_at` - `std::os::windows::FileExt::seek_read_buf`
74e016c
to
2ccb45f
Compare
Have these changes been discussed with libs-api at all? Usually changes to unstable API need to be proposed at https://github.com/rust-lang/libs-team/ with the ACP issue template. This needs some tests as well. |
For the above, |
Reminder, once the PR becomes ready for a review, use |
For consistency and clarity, could we include safety comments on each unsafe block? Even brief notes are helpful to understand the assumptions being made |
Adds the following items under the
read_buf
(#78485) feature:std::os::unix::FileExt::read_buf_at
std::os::unix::FileExt::read_buf_exact_at
std::os::windows::FileExt::seek_read_buf