#include <ByteBufferWriter.h>
Inheritance diagram for acdk::io::BytePtrWriter:
Public Member Functions | |
BytePtrWriter (byte *it, byte *end, IN(acdk::lang::Object) obj=Nil) | |
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); | |
Protected Attributes | |
acdk::lang::Object | _obj |
byte * | _it |
byte * | _end |
|
|
|
Implements acdk::io::AbstractWriter. |
|
Implements acdk::io::AbstractWriter. |
|
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. |
|
|
|
|
|
|