From 7c6c9538b03c9eae24e38fbeb30dd76a16aff1d2 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Thu, 20 Jan 2011 05:30:43 +0000 Subject: Wow, got the Stream changes propegated, all tests build with string instead of fstring, and updated the copyright notice to extend to 2011 --- src/base64.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/base64.cpp') diff --git a/src/base64.cpp b/src/base64.cpp index 73ec8f3..18a18e5 100644 --- a/src/base64.cpp +++ b/src/base64.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2007-2010 Xagasoft, All rights reserved. + * Copyright (C) 2007-2011 Xagasoft, All rights reserved. * * This file is part of the libbu++ library and is released under the * terms of the license contained in the file LICENSE. @@ -64,7 +64,7 @@ void Bu::Base64::start() { } -size_t Bu::Base64::stop() +Bu::size Bu::Base64::stop() { // if( eMode |= Encode ) { @@ -89,11 +89,11 @@ size_t Bu::Base64::stop() // } } -size_t Bu::Base64::read( void *pBuf, size_t nBytes ) +Bu::size Bu::Base64::read( void *pBuf, Bu::size nBytes ) { if( bEosIn == true && iRPos == iChars ) return 0; - size_t sIn = 0; + Bu::size sIn = 0; char buf[4]; while( sIn < nBytes ) { @@ -153,11 +153,11 @@ size_t Bu::Base64::read( void *pBuf, size_t nBytes ) return sIn; } -size_t Bu::Base64::write( const void *pBuf, size_t nBytes ) +Bu::size Bu::Base64::write( const void *pBuf, Bu::size nBytes ) { - size_t sOut = 0; + Bu::size sOut = 0; char outBuf[4]; - for( size_t j = 0; j < nBytes; j++ ) + for( Bu::size j = 0; j < nBytes; j++ ) { iBuf |= (((uint8_t *)pBuf)[j])<<((2-iBPos++)*8); if( iBPos == 3 ) -- cgit v1.2.3