diff options
| author | bors <bors@rust-lang.org> | 2020-02-04 20:30:53 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2020-02-04 20:30:53 +0000 |
| commit | c9290dceee2cb6b882b26ec6e294560e51ef0853 (patch) | |
| tree | 4a562c7b3baab76e74d7e2f0b4cd02b2264474ee /src/libstd/sys/unix/stack_overflow.rs | |
| parent | 5b0caef54a062b5e283cf15d1fad7027f631f29d (diff) | |
| parent | aebd0d733940d62566c66a923c7b9f7078209e98 (diff) | |
| download | rust-c9290dceee2cb6b882b26ec6e294560e51ef0853.tar.gz rust-c9290dceee2cb6b882b26ec6e294560e51ef0853.zip | |
Auto merge of #68558 - HeroicKatora:buf-writer-capacity, r=alexcrichton
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.
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions
