Open
Description
Feature gate: #![feature(bufreader_peek)]
This is a tracking issue for the BufReader::peek
method.
Public API
// std::io
impl BufReader {
fn peek(&mut self, n: usize) -> io::Result<&[u8]>
}
Steps / History
- ACP Accepted: ACP: BufReader::peek libs-team#417
- Implementation: implement BufReader::peek #128406
- Final comment period (FCP)1
- Stabilization PR
Unresolved Questions
- what should happen if
n
>capacity
? options are: short slice, error, or panic. - should the buffer be completely filled, or should it only read the number of bytes requested?