From 34b70b0b46e34a73308a4034cc9b1c70209b9eb4 Mon Sep 17 00:00:00 2001 From: Fritz Elfert Date: Mon, 28 Jun 1999 08:56:01 +0000 Subject: First import. --- lib/bufferarray.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 lib/bufferarray.h (limited to 'lib/bufferarray.h') diff --git a/lib/bufferarray.h b/lib/bufferarray.h new file mode 100644 index 0000000..089eb4e --- /dev/null +++ b/lib/bufferarray.h @@ -0,0 +1,25 @@ +#ifndef _bufferarray_h +#define _bufferarray_h + +#include "bool.h" +class bufferStore; + +class bufferArray { +public: + bufferArray(); + bufferArray(const bufferArray &a); + ~bufferArray(); + void operator =(const bufferArray &a); + + bool empty() const; + bufferStore popBuffer(); + void pushBuffer(const bufferStore& b); +private: + long len; + long lenAllocd; + bufferStore* buff; +}; + +inline bool bufferArray::empty() const { return len == 0; } + +#endif -- cgit v1.2.3