pub struct BufReader { buf: ~[u8], pos: @mut uint, }
An implementation of the io::Reader interface which reads a buffer of bytes
impl BufReader
fn new(v: ~[u8]) -> BufReader
Creates a new buffer reader for the specified buffer
impl std::io::Reader for BufReader
fn read(&self, bytes: &mut [u8], len: uint) -> uint
fn read_byte(&self) -> int
fn eof(&self) -> bool
fn seek(&self, offset: int, whence: std::io::SeekStyle)
fn tell(&self) -> uint
Prefix searches with a type followed by a colon (e.g.
fn:
) to restrict the search to a given type.
Accepted types are: fn
, mod
,
struct
(or str
), enum
,
trait
, typedef
(or
tdef
).