53Pool::Pool(
int _buffersize,
int initpoolsize,
const char *n )
55 if((
unsigned)_buffersize <
sizeof(Buffer))
56 buffersize =
sizeof(Buffer);
58 buffersize = _buffersize;
59 initsize = initpoolsize * buffersize;
76 assert( (
this != 0) && (magic == is_allocated) );
79 delete [] blocklist[--nextblock];
80 blocklist[nextblock] = 0;
86void Pool::grow(
void )
88 assert( (
this != 0) && (magic == is_allocated) );
89 curblock =
new char[nextsize];
90 blocklist[nextblock++] = curblock;
103 assert( (
this != 0) && (magic == is_allocated) );
106 delete [] blocklist[--nextblock];
107 blocklist[nextblock] = 0;
112 if( nextsize > initsize )