current version
[opsoft_test.git] / gclib2 / include / Buf.h
blob6df635d7d9a1f68d27547771bbbfb498c578c1da
1 /*
2 * (c) Oleg Puchinin 2006
3 * graycardinalster@gmail.com
4 *
5 */
7 #ifndef DEFINE_BUF_H
8 #define DEFINE_BUF_H
10 #include <dpbuf.h>
12 class Buf;
13 class Buf : public DPBuf
15 public:
16 Buf ();
17 Buf (int len);
18 Buf (char * ptr, int len);
19 ~Buf ();
21 char * seek (int offset, int whence);
22 int available ();
23 char * position ();
24 Buf * shift (int count);
25 int unshift (Buf * m_buf);
27 char * readString (); // v2.3
29 bool operator == (Buf * m_buf);
30 bool operator != (Buf * m_buf);
33 void buf_free (void * ptr);
35 #endif