summaryrefslogtreecommitdiff
path: root/src/stable/base64.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/stable/base64.h')
-rw-r--r--src/stable/base64.h82
1 files changed, 41 insertions, 41 deletions
diff --git a/src/stable/base64.h b/src/stable/base64.h
index b10aaeb..695a5ea 100644
--- a/src/stable/base64.h
+++ b/src/stable/base64.h
@@ -13,47 +13,47 @@
13 13
14namespace Bu 14namespace Bu
15{ 15{
16 subExceptionDecl( Base64Exception ); 16 subExceptionDecl( Base64Exception );
17 17
18 /** 18 /**
19 * 19 *
20 *@ingroup Streams 20 *@ingroup Streams
21 */ 21 */
22 class Base64 : public Bu::Filter 22 class Base64 : public Bu::Filter
23 { 23 {
24 public: 24 public:
25 Base64( Bu::Stream &rNext, int iChunkSize=0 ); 25 Base64( Bu::Stream &rNext, int iChunkSize=0 );
26 virtual ~Base64(); 26 virtual ~Base64();
27 27
28 virtual void start(); 28 virtual void start();
29 virtual Bu::size stop(); 29 virtual Bu::size stop();
30 virtual Bu::size read( void *pBuf, Bu::size nBytes ); 30 virtual Bu::size read( void *pBuf, Bu::size nBytes );
31 virtual Bu::size write( const void *pBuf, Bu::size nBytes ); 31 virtual Bu::size write( const void *pBuf, Bu::size nBytes );
32 32
33 virtual bool isOpen(); 33 virtual bool isOpen();
34 34
35 virtual bool isEos(); 35 virtual bool isEos();
36 36
37 private: 37 private:
38 int iBPos; 38 int iBPos;
39 int iBuf; 39 int iBuf;
40 int iRPos; 40 int iRPos;
41 int iChars; 41 int iChars;
42 bool bEosIn; 42 bool bEosIn;
43 Bu::size iTotalIn; 43 Bu::size iTotalIn;
44 Bu::size iTotalOut; 44 Bu::size iTotalOut;
45 static const char tblEnc[65]; 45 static const char tblEnc[65];
46 char tblDec[80]; 46 char tblDec[80];
47 enum Mode 47 enum Mode
48 { 48 {
49 Nothing = 0x00, 49 Nothing = 0x00,
50 Encode = 0x01, 50 Encode = 0x01,
51 Decode = 0x02, 51 Decode = 0x02,
52 }; 52 };
53 Mode eMode; 53 Mode eMode;
54 int iChunkSize; 54 int iChunkSize;
55 int iCurChunk; 55 int iCurChunk;
56 }; 56 };
57}; 57};
58 58
59#endif 59#endif