#include <ByteBufferWriter.h>
Inheritance diagram for acdk::io::ByteBufferWriter:
Public Member Functions | |
ByteBufferWriter (IN(RWriteByteBuffer) buffer) | |
virtual void | close () |
virtual void | flush () |
virtual void | write (const byte *cstr, int offset, int len) |
virtual void | write (byte c) |
default implementation: byte cbuf[2]; cbuf[1] = 0; cbuf[0] = c; return write((const byte*)cbuf, 0, 1); | |
virtual void | write (IN(RbyteArray) ch, int offset=0, int len=-1) |
default implementation: return write(ch->data(), offset, len == -1 ? ch->length() - offset : len); | |
virtual RStorage | getWriterStorage () |
RWriteByteBuffer | getBuffer () |
Protected Attributes | |
RWriteByteBuffer | _buffer |
int | _curPos |
|
|
|
Implements acdk::io::AbstractWriter. |
|
Implements acdk::io::AbstractWriter. |
|
|
|
Reimplemented from acdk::io::Writer. |
|
default implementation: return write(ch->data(), offset, len == -1 ? ch->length() - offset : len);
Reimplemented from acdk::io::AbstractWriter. |
|
default implementation: byte cbuf[2]; cbuf[1] = 0; cbuf[0] = c; return write((const byte*)cbuf, 0, 1);
Implements acdk::io::AbstractWriter. |
|
Reimplemented from acdk::io::AbstractWriter. |
|
|
|
|