pub fn with_capacity(capacity: usize, inner: R) -> Self {
        // TODO: consider using Box<[u8]>::new_uninit_slice once it stabilized
        let buffer = vec![0; capacity];
        Self { inner, buffer: buffer.into_boxed_slice(), pos: 0, cap: 0 }
    }
/// Creates a new `BufReader` with the specified buffer capacity.
Creates a new `BufReader` with the specified buffer capacity.
Creates a new ` BufReader ` with the specified buffer capacity .
pub fn with_capacity(capacity: usize, inner: R) -> Self {
        // TODO: consider using Box<[u8]>::new_uninit_slice once it stabilized
        let buffer = vec![0; capacity];
        Self { inner, buffer: buffer.into_boxed_slice(), pos: 0, cap: 0 }
    }
pub fn with_capacity ( capacity : usize , inner : R ) -> Self { // TODO: consider using Box<[u8]>::new_uninit_slice once it stabilized let buffer = vec ! [ 0 capacity ] ; Self { inner , buffer : buffer . into_boxed_slice ( ) , pos : 0 , cap : 0 } }
Creates a new `BufReader` with the specified buffer capacity.
Creates a new ` BufReader ` with the specified buffer capacity .
capacity
usize
inner
R
capacity
usize
inner
R