aboutsummaryrefslogtreecommitdiff
path: root/src/base64.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/base64.h')
-rw-r--r--src/base64.h17
1 files changed, 7 insertions, 10 deletions
diff --git a/src/base64.h b/src/base64.h
index 2c3b331..41264e0 100644
--- a/src/base64.h
+++ b/src/base64.h
@@ -12,16 +12,7 @@ namespace Bu
12 class Base64 : public Bu::Filter 12 class Base64 : public Bu::Filter
13 { 13 {
14 public: 14 public:
15 enum Mode 15 Base64( Bu::Stream &rNext );
16 {
17 Encode = 0x01,
18 Read = 0x01,
19 Decode = 0x02,
20 Write = 0x02
21 };
22
23 public:
24 Base64( Bu::Stream &rNext, Mode eMode );
25 virtual ~Base64(); 16 virtual ~Base64();
26 17
27 virtual void start(); 18 virtual void start();
@@ -38,6 +29,12 @@ namespace Bu
38 size_t iTotalOut; 29 size_t iTotalOut;
39 static const char tblEnc[65]; 30 static const char tblEnc[65];
40 char tblDec[80]; 31 char tblDec[80];
32 enum Mode
33 {
34 Nothing = 0x00,
35 Encode = 0x01,
36 Decode = 0x02,
37 };
41 Mode eMode; 38 Mode eMode;
42 }; 39 };
43}; 40};