diff options
author | Mike Buland <eichlan@xagasoft.com> | 2011-01-20 05:30:43 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2011-01-20 05:30:43 +0000 |
commit | 7c6c9538b03c9eae24e38fbeb30dd76a16aff1d2 (patch) | |
tree | e2d4bfccd81070adf7294ee54db2399df0c7171f /src/buffer.cpp | |
parent | f5aca1a1b402bd7ebc944dc6e6fe65828d863365 (diff) | |
download | libbu++-7c6c9538b03c9eae24e38fbeb30dd76a16aff1d2.tar.gz libbu++-7c6c9538b03c9eae24e38fbeb30dd76a16aff1d2.tar.bz2 libbu++-7c6c9538b03c9eae24e38fbeb30dd76a16aff1d2.tar.xz libbu++-7c6c9538b03c9eae24e38fbeb30dd76a16aff1d2.zip |
Wow, got the Stream changes propegated, all tests build with string instead of
fstring, and updated the copyright notice to extend to 2011
Diffstat (limited to '')
-rw-r--r-- | src/buffer.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
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 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (C) 2007-2010 Xagasoft, All rights reserved. | 2 | * Copyright (C) 2007-2011 Xagasoft, All rights reserved. |
3 | * | 3 | * |
4 | * This file is part of the libbu++ library and is released under the | 4 | * This file is part of the libbu++ library and is released under the |
5 | * terms of the license contained in the file LICENSE. | 5 | * terms of the license contained in the file LICENSE. |
@@ -32,7 +32,7 @@ void Bu::Buffer::start() | |||
32 | { | 32 | { |
33 | } | 33 | } |
34 | 34 | ||
35 | size_t Bu::Buffer::stop() | 35 | Bu::size Bu::Buffer::stop() |
36 | { | 36 | { |
37 | iReadBufFill = iReadPos = iWriteBufFill = iWritePos = 0; | 37 | iReadBufFill = iReadPos = iWriteBufFill = iWritePos = 0; |
38 | return sSoFar; | 38 | return sSoFar; |
@@ -49,7 +49,7 @@ void Bu::Buffer::fillReadBuf() | |||
49 | } | 49 | } |
50 | } | 50 | } |
51 | 51 | ||
52 | size_t Bu::Buffer::read( void *pBuf, size_t nBytes ) | 52 | Bu::size Bu::Buffer::read( void *pBuf, Bu::size nBytes ) |
53 | { | 53 | { |
54 | if( nBytes <= 0 ) | 54 | if( nBytes <= 0 ) |
55 | { | 55 | { |
@@ -57,7 +57,7 @@ size_t Bu::Buffer::read( void *pBuf, size_t nBytes ) | |||
57 | return 0; | 57 | return 0; |
58 | } | 58 | } |
59 | 59 | ||
60 | size_t nTotRead = 0; | 60 | Bu::size nTotRead = 0; |
61 | // fillReadBuf(); | 61 | // fillReadBuf(); |
62 | 62 | ||
63 | do | 63 | do |
@@ -87,9 +87,9 @@ size_t Bu::Buffer::read( void *pBuf, size_t nBytes ) | |||
87 | return nTotRead; | 87 | return nTotRead; |
88 | } | 88 | } |
89 | 89 | ||
90 | size_t Bu::Buffer::write( const void *pBuf, size_t nBytes ) | 90 | Bu::size Bu::Buffer::write( const void *pBuf, Bu::size nBytes ) |
91 | { | 91 | { |
92 | size_t nTotWrote = 0; | 92 | Bu::size nTotWrote = 0; |
93 | 93 | ||
94 | do | 94 | do |
95 | { | 95 | { |