pub struct BytesWriter { bytes: @mut ~[u8], pos: @mut uint, }
impl BytesWriter
fn new() -> BytesWriter
impl Writer for BytesWriter
fn write(&self, v: &[u8])
Write all of the given bytes.
fn seek(&self, offset: int, whence: SeekStyle)
Move the current position within the stream. The second parameter determines the position that the first parameter is relative to.
fn tell(&self) -> uint
Return the current position within the stream.
fn flush(&self) -> int
Flush the output buffer for this stream (if there is one).
fn get_type(&self) -> WriterType
Determine if this Writer is writing to a file or not.
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
).