Mini application server API for C++.

 Overview   Project   Class   Tree   Deprecated   Index 
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD

base
Class CzzBuffer

   in zz_buffer.h

class CzzBuffer

General data buffer with automatic memory handeling.

Author:
Toni Thomsson, toni@tonjac.org

Constructor Summary
CzzBuffer( unsigned long initsize )
          Create a buffer.
CzzBuffer( unsigned long initsize, unsigned long realloc )
          Create a buffer
virtual ~CzzBuffer()
          
 
Method Summary
 void append( char* more, unsigned long size )
          Append data to the buffer
 void clear( void )
          Clears the buffer
 char* getData( void )
          Pointer to the raw data
 unsigned long getSize( void )
          Buffer size
 

Constructor Detail

CzzBuffer

public CzzBuffer( unsigned long initsize );
Create a buffer. Reallocation size of 1024 bytes.
Parameters:
initsize - Initial size in bytes

CzzBuffer

public CzzBuffer( unsigned long initsize, unsigned long realloc );
Create a buffer
Parameters:
initsize - Initial size in bytes
realloc - Size of reallocation block

~CzzBuffer

public virtual ~CzzBuffer();


Method Detail

append

public void append( char* more, unsigned long size );
Append data to the buffer
Parameters:
more - Data to be appended
size - Size of the data

clear

public void clear( void );
Clears the buffer

getData

public char* getData( void );
Pointer to the raw data

getSize

public unsigned long getSize( void );
Buffer size

 Overview   Project   Class   Tree   Deprecated   Index 
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD