#ifndef __BUFFER_H__ class Buffer { public: Buffer(int max) : head(0), tail(0), size(0), maxbuf(max), overflows(0), buf(new BYTE[max]) {} ~Buffer() { delete buf; } int head; int tail; int size; int maxbuf; int overflows; BYTE *buf; }; #define __BUFFER_H__ #endif