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/buffer.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/buffer.cpp') diff --git a/src/buffer.cpp b/src/buffer.cpp index 234dc92..b54f97e 100644 --- a/src/buffer.cpp +++ b/src/buffer.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. @@ -32,7 +32,7 @@ void Bu::Buffer::start() { } -size_t Bu::Buffer::stop() +Bu::size Bu::Buffer::stop() { iReadBufFill = iReadPos = iWriteBufFill = iWritePos = 0; return sSoFar; @@ -49,7 +49,7 @@ void Bu::Buffer::fillReadBuf() } } -size_t Bu::Buffer::read( void *pBuf, size_t nBytes ) +Bu::size Bu::Buffer::read( void *pBuf, Bu::size nBytes ) { if( nBytes <= 0 ) { @@ -57,7 +57,7 @@ size_t Bu::Buffer::read( void *pBuf, size_t nBytes ) return 0; } - size_t nTotRead = 0; + Bu::size nTotRead = 0; // fillReadBuf(); do @@ -87,9 +87,9 @@ size_t Bu::Buffer::read( void *pBuf, size_t nBytes ) return nTotRead; } -size_t Bu::Buffer::write( const void *pBuf, size_t nBytes ) +Bu::size Bu::Buffer::write( const void *pBuf, Bu::size nBytes ) { - size_t nTotWrote = 0; + Bu::size nTotWrote = 0; do { -- cgit v1.2.3