aboutsummaryrefslogtreecommitdiff
path: root/src/buffer.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/buffer.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/buffer.h b/src/buffer.h
index 17c6d73..91ec9c2 100644
--- a/src/buffer.h
+++ b/src/buffer.h
@@ -15,9 +15,16 @@ namespace Bu
15 class Buffer : public Bu::Filter 15 class Buffer : public Bu::Filter
16 { 16 {
17 public: 17 public:
18 Buffer( Bu::Stream &rNext, int iBufSize=4096 ); 18 Buffer( Bu::Stream &rNext, int iWhat=Both, int iBufSize=4096 );
19 virtual ~Buffer(); 19 virtual ~Buffer();
20 20
21 enum
22 {
23 Write = 1,
24 Read = 2,
25 Both = 3
26 };
27
21 virtual void start(); 28 virtual void start();
22 virtual Bu::size stop(); 29 virtual Bu::size stop();
23 30
@@ -44,6 +51,7 @@ namespace Bu
44 int iReadPos; 51 int iReadPos;
45 int iWriteBufFill; 52 int iWriteBufFill;
46 int iWritePos; 53 int iWritePos;
54 int iWhat;
47 }; 55 };
48}; 56};
49 57