2005/5/9

     
 

class LittleBytesWriter

artefaktur
Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   Namespace Members   Compound Members   Related Pages  

acdk::io::LittleBytesWriter Class Reference

#include <CharToByteReader.h>

Inheritance diagram for acdk::io::LittleBytesWriter:

acdk::lang::Object acdk::io::Writer acdk::lang::ObjectBase acdk::lang::dmi::StdDispatch List of all members.

Detailed Description

helper for CharToByteReader.

Author:
Roger Rene Kommer (mailto:kommer@artefaktur.com)
Version:
Revision
1.7
Date:
Date
2005/03/01 10:12:47


Public Member Functions

 LittleBytesWriter ()
virtual void flush ()
virtual void close ()
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)
 Uses write(byte c) to write bytes.

virtual void write (const byte *cstr, int offset, int len)
int _getAvailable ()
int getByte ()
void _reset ()

Private Attributes

byte _buffer [32]
int _writePos
int _readPos


Constructor & Destructor Documentation

acdk::io::LittleBytesWriter::LittleBytesWriter  )  [inline]
 


Member Function Documentation

int acdk::io::LittleBytesWriter::_getAvailable  )  [inline]
 

void acdk::io::LittleBytesWriter::_reset  )  [inline]
 

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

Implements acdk::io::Writer.

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

Implements acdk::io::Writer.

int acdk::io::LittleBytesWriter::getByte  )  [inline]
 

virtual void acdk::io::LittleBytesWriter::write const byte cstr,
int  offset,
int  len
[inline, virtual]
 

Reimplemented from acdk::io::Writer.

virtual void acdk::io::LittleBytesWriter::write IN(RbyteArray ch,
int  offset = 0,
int  len = -1
[inline, virtual]
 

Uses write(byte c) to write bytes.

For performance reason this method should be implemented

Reimplemented from acdk::io::Writer.

virtual void acdk::io::LittleBytesWriter::write byte  c  )  [inline, virtual]
 

default implementation: byte cbuf[2]; cbuf[1] = 0; cbuf[0] = c; return write((const byte*)cbuf, 0, 1);

Implements acdk::io::Writer.


Member Data Documentation

byte acdk::io::LittleBytesWriter::_buffer[32] [private]
 

int acdk::io::LittleBytesWriter::_readPos [private]
 

int acdk::io::LittleBytesWriter::_writePos [private]