aboutsummaryrefslogtreecommitdiff
path: root/src/base64.h
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2009-07-29 23:02:26 +0000
committerMike Buland <eichlan@xagasoft.com>2009-07-29 23:02:26 +0000
commit24d46e151326b1b159603442e74540bf87897a53 (patch)
tree581d72fe2bda347793dddd4457f06614636474b4 /src/base64.h
parentc2292209eb4ece185f555a5c7823726794fe34cc (diff)
downloadlibbu++-24d46e151326b1b159603442e74540bf87897a53.tar.gz
libbu++-24d46e151326b1b159603442e74540bf87897a53.tar.bz2
libbu++-24d46e151326b1b159603442e74540bf87897a53.tar.xz
libbu++-24d46e151326b1b159603442e74540bf87897a53.zip
Base64, now more clever with fewer options.
Diffstat (limited to '')
-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};