Struct nue_io::BufSeeker
[−]
[src]
pub struct BufSeeker<T> { // some fields omitted }
A buffered reader that allows for seeking within the buffer.
Unlike std::io::BufReader
, seeking doesn't invalidate the buffer.
Methods
impl<T> BufSeeker<T>
fn new(inner: T) -> Self
Creates a new BufSeeker
around the specified Read
.
fn with_capacity(cap: usize, inner: T) -> Self
Creates a BufSeeker
with a specific buffer size.
fn into_inner(self) -> T
Unwraps the BufSeeker
, returning the underlying reader.
Note that any leftover data in the buffer will be lost.