diff options
author | Mike Buland <eichlan@xagasoft.com> | 2012-11-05 22:41:51 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2012-11-05 22:41:51 +0000 |
commit | ec05778d5718a7912e506764d443a78d6a6179e3 (patch) | |
tree | 78a9a01532180030c095acefc45763f07c14edb8 /src/stable/base64.h | |
parent | b20414ac1fe80a71a90601f4cd1767fa7014a9ba (diff) | |
download | libbu++-ec05778d5718a7912e506764d443a78d6a6179e3.tar.gz libbu++-ec05778d5718a7912e506764d443a78d6a6179e3.tar.bz2 libbu++-ec05778d5718a7912e506764d443a78d6a6179e3.tar.xz libbu++-ec05778d5718a7912e506764d443a78d6a6179e3.zip |
Converted tabs to spaces with tabconv.
Diffstat (limited to 'src/stable/base64.h')
-rw-r--r-- | src/stable/base64.h | 82 |
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 | ||
14 | namespace Bu | 14 | namespace 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 |