Struct std::io::BytesWriter

pub struct BytesWriter {
    bytes: @mut ~[u8],
    pos: @mut uint,
}

Methods

impl BytesWriter

fn new() -> BytesWriter

Trait Implementations

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.