Allocates a new buffered reader.
impl<R, H> BufReader<R, H>
where R: Read,
H: Allocator,
<H as Allocator>::Pool: Default,
{
fn new(read: R, size: usize) -> Result<BufReader<R, H>, Errno>
}| Name | Description |
|---|---|
| read | The reader that will be wrapped in the buffered reader. |
| size | The buffer-size of the buffered reader. |
size will be increased to the next power of two.