Sedona

sys::BufOutStream


sys::Obj
  sys::Virtual
    sys::OutStream
      sys::BufOutStream

public final class BufOutStream

BufOutStream is used to write bytes to a memory Buf.


buf

public Buf buf

BufOutStream

public void BufOutStream(Buf buf)

Construct for specified Buf instance.

write

public override bool write(int x)

Write a byte to the end of the buffer at buf[size]. Return true on success, false if buffer is full.

writeBytes

public override bool writeBytes(byte[] b, int off, int len)

Write a block of bytes to the end of the buffer. buffer size. Return true on success, false if there is not enough room in the buffer.