base/zz_buffer.h

Go to the documentation of this file.
00001 /* libzz
00002  *
00003  * This program is distributed under the GNU General Public License, version 2.
00004  * A copy of this license is included with this source.
00005  *
00006  * Copyright 2000-2006, Toni Thomsson <toni@tonjac.org> 
00007 */
00008 
00009 #ifndef zz_buffer_h
00010 #define zz_buffer_h
00011 
00012 #include <zz_export.h>
00013 
00019 class ZZ_API CzzBuffer
00020 {
00021 public:
00022 
00029         CzzBuffer( unsigned long initsize, unsigned long realloc );
00030         
00036         CzzBuffer( unsigned long initsize );
00037 
00038         virtual ~CzzBuffer();
00039 
00046         void append( char* more,
00047                                         unsigned long size );
00048 
00050     void clear( void );
00051 
00055         char* getData( void ) { return m_Data; };
00056 
00058         unsigned long getSize( void ) { return m_Used; };
00059 
00060 protected:
00061 
00062         unsigned long m_Used;
00063         unsigned long m_Size;
00064         unsigned long m_Realloc;
00065         char* m_Tmp;
00066         char* m_Data;
00067 };
00068 
00069 #endif // zz_buffer_h
00070 
00071 

Generated on Thu Sep 21 21:45:41 2006 for tonjac.org MINI/C++ library by  doxygen 1.4.6-NO