Uh oh!
There was an error while loading. Please reload this page.
Add a method to query the capacity of a BufWriter and BufReader - #68558
Conversation
rust-highfive
commented
Jan 26, 2020
(rust_highfive has picked a reviewer for you, use r? to override) |
rust-highfive
commented
Jan 26, 2020
The job Click to expand the log.I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
alexcrichton
commented
Jan 27, 2020
Seems plausible to me, thanks! This'll want to get tagged as an |
197g
commented
Jan 27, 2020
I don't see why not, it also relates to the length of the buffer returned from a call to |
rust-highfive
commented
Jan 27, 2020
The job Click to expand the log.I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
26ce48b to
6b3df83Comparerust-highfive
commented
Jan 27, 2020
The job Click to expand the log.I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
6b3df83 to
aebd0d7Compare197g
commented
Jan 28, 2020
That should now have a feature gate and appropriate tests. |
alexcrichton
commented
Feb 4, 2020
@bors: r+ |
bors
commented
Feb 4, 2020
📌 Commit aebd0d7 has been approved by |
bors
commented
Feb 4, 2020
Add a method to query the capacity of a BufWriter and BufReader Besides the obvious of retrieving the parameter used to construct the writer, this method allows consumers to control the number of `flush` calls during write operations. For `BufReader` it gives an upper bound on the returned buffer in `fill_buf` which might influence the allocation behaviour of a consumer.
JohnTitor
commented
Feb 4, 2020
The unstable attribute's issue number should be tracking issue's, not PR's. Opened #68833, I'll submit a follow-up PR once this is merged. |
bors
commented
Feb 4, 2020
☀️ Test successful - checks-azure |
Fix issue number of `capacity` method Follow-up of rust-lang#68558 (comment) r? @alexcrichton
Fix issue number of `capacity` method Follow-up of rust-lang#68558 (comment) r? @alexcrichton
Besides the obvious of retrieving the parameter used to construct the writer, this method allows consumers to control the number of
flushcalls during write operations. ForBufReaderit gives an upper bound on the returned buffer infill_bufwhich might influence the allocation behaviour of a consumer.