|
|
|
|
|
|
Modules Namespace List Class Hierarchy Alphabetical List Compound List Namespace Members Compound Members Related Pages
acdk::io::BytePtrWriter Class Reference#include <ByteBufferWriter.h>
Inheritance diagram for acdk::io::BytePtrWriter:
List of all members.
Detailed Description
internal class for a writer into a fix byte buffer
|
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 |
Constructor & Destructor Documentation
Member Function Documentation
virtual void acdk::io::BytePtrWriter::close |
( |
|
) |
[inline, virtual] |
|
virtual void acdk::io::BytePtrWriter::flush |
( |
|
) |
[inline, virtual] |
|
virtual void acdk::io::BytePtrWriter::write |
( |
IN(RbyteArray) |
ch, |
|
|
int |
offset = 0, |
|
|
int |
len = -1 |
|
) |
[virtual] |
|
|
default implementation: return write(ch->data(), offset, len == -1 ? ch->length() - offset : len);
Reimplemented from acdk::io::AbstractWriter. |
virtual void acdk::io::BytePtrWriter::write |
( |
byte |
c |
) |
[virtual] |
|
|
default implementation: byte cbuf[2]; cbuf[1] = 0; cbuf[0] = c; return write((const byte*)cbuf, 0, 1);
Implements acdk::io::AbstractWriter. |
virtual void acdk::io::BytePtrWriter::write |
( |
const byte * |
cstr, |
|
|
int |
offset, |
|
|
int |
len |
|
) |
[virtual] |
|
Member Data Documentation
|
|