From b1558182a40a4a61a811a6879b6278894fe1120f Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Fri, 9 Jul 2010 22:37:58 +0000 Subject: Bu::Base64 needed it's own isEos() function. --- src/base64.cpp | 7 +++++++ src/base64.h | 2 ++ 2 files changed, 9 insertions(+) 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() return true; } +bool Bu::Base64::isEos() +{ + if( bEosIn == true && iRPos == iChars ) + return true; + return false; +} + 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 virtual bool isOpen(); + virtual bool isEos(); + private: int iBPos; int iBuf; -- cgit v1.2.3