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/substream.h | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'src/substream.h') diff --git a/src/substream.h b/src/substream.h index b460f13..1db4d6c 100644 --- a/src/substream.h +++ b/src/substream.h @@ -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. @@ -34,29 +34,29 @@ namespace Bu class SubStream : public Bu::Filter { public: - SubStream( Bu::Stream &rNext, long iSize ); + SubStream( Bu::Stream &rNext, Bu::size iSize ); virtual ~SubStream(); - virtual size_t read( void *pBuf, size_t nBytes ); - virtual size_t write( const void *pBuf, size_t nBytes ); + virtual Bu::size read( void *pBuf, Bu::size nBytes ); + virtual Bu::size write( const void *pBuf, Bu::size nBytes ); using Bu::Stream::write; virtual void start(); - virtual size_t stop(); + virtual Bu::size stop(); virtual void close(); - virtual long tell(); - virtual void seek( long offset ); - virtual void setPos( long pos ); - virtual void setPosEnd( long pos ); + virtual Bu::size tell(); + virtual void seek( Bu::size offset ); + virtual void setPos( Bu::size pos ); + virtual void setPosEnd( Bu::size pos ); virtual bool isEos(); virtual bool canRead(); virtual bool canWrite(); protected: - long iStart; - long iPos; - long iSize; + Bu::size iStart; + Bu::size iPos; + Bu::size iSize; }; }; -- cgit v1.2.3