diff options
author | Mike Buland <eichlan@xagasoft.com> | 2010-07-09 22:37:58 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2010-07-09 22:37:58 +0000 |
commit | b1558182a40a4a61a811a6879b6278894fe1120f (patch) | |
tree | bc92cad968d827a58b37358c41ea6a6f696f63c3 /src | |
parent | 280145e984283daa11fe81329246ad23b77cd8f3 (diff) | |
download | libbu++-b1558182a40a4a61a811a6879b6278894fe1120f.tar.gz libbu++-b1558182a40a4a61a811a6879b6278894fe1120f.tar.bz2 libbu++-b1558182a40a4a61a811a6879b6278894fe1120f.tar.xz libbu++-b1558182a40a4a61a811a6879b6278894fe1120f.zip |
Bu::Base64 needed it's own isEos() function.
Diffstat (limited to '')
-rw-r--r-- | src/base64.cpp | 7 | ||||
-rw-r--r-- | src/base64.h | 2 |
2 files changed, 9 insertions, 0 deletions
diff --git a/src/base64.cpp b/src/base64.cpp index 5a60950..73ec8f3 100644 --- a/src/base64.cpp +++ b/src/base64.cpp | |||
@@ -179,3 +179,10 @@ bool Bu::Base64::isOpen() | |||
179 | return true; | 179 | return true; |
180 | } | 180 | } |
181 | 181 | ||
182 | bool Bu::Base64::isEos() | ||
183 | { | ||
184 | if( bEosIn == true && iRPos == iChars ) | ||
185 | return true; | ||
186 | return false; | ||
187 | } | ||
188 | |||
diff --git a/src/base64.h b/src/base64.h index c0b1ca7..c4dfd53 100644 --- a/src/base64.h +++ b/src/base64.h | |||
@@ -32,6 +32,8 @@ namespace Bu | |||
32 | 32 | ||
33 | virtual bool isOpen(); | 33 | virtual bool isOpen(); |
34 | 34 | ||
35 | virtual bool isEos(); | ||
36 | |||
35 | private: | 37 | private: |
36 | int iBPos; | 38 | int iBPos; |
37 | int iBuf; | 39 | int iBuf; |