2005/5/9

     
 

class BytePtrWriter

artefaktur
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:

acdk::io::AbstractWriter acdk::lang::Object acdk::io::Writer acdk::lang::ObjectBase acdk::lang::dmi::StdDispatch 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

acdk::io::BytePtrWriter::BytePtrWriter byte it,
byte end,
IN(acdk::lang::Object obj = Nil
[inline]
 


Member Function Documentation

virtual void acdk::io::BytePtrWriter::close  )  [inline, virtual]
 

Implements acdk::io::AbstractWriter.

virtual void acdk::io::BytePtrWriter::flush  )  [inline, virtual]
 

Implements acdk::io::AbstractWriter.

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]
 

Reimplemented from acdk::io::AbstractWriter.


Member Data Documentation

byte* acdk::io::BytePtrWriter::_end [protected]
 

byte* acdk::io::BytePtrWriter::_it [protected]
 

acdk::lang::Object acdk::io::BytePtrWriter::_obj [protected]