aboutsummaryrefslogtreecommitdiff
path: root/src/buffer.cpp
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2010-05-01 02:47:08 +0000
committerMike Buland <eichlan@xagasoft.com>2010-05-01 02:47:08 +0000
commitaeb8bee786a9495c78ed94e2a8485ed790714635 (patch)
tree8ffe8bb122daedabb92c18495d9cb95e601f71ea /src/buffer.cpp
parentdaa25c26e99eb62a4ce499f8079b15734987ac0d (diff)
downloadlibbu++-aeb8bee786a9495c78ed94e2a8485ed790714635.tar.gz
libbu++-aeb8bee786a9495c78ed94e2a8485ed790714635.tar.bz2
libbu++-aeb8bee786a9495c78ed94e2a8485ed790714635.tar.xz
libbu++-aeb8bee786a9495c78ed94e2a8485ed790714635.zip
The cache...
Diffstat (limited to 'src/buffer.cpp')
-rw-r--r--src/buffer.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/buffer.cpp b/src/buffer.cpp
index 57f965c..cbebfc2 100644
--- a/src/buffer.cpp
+++ b/src/buffer.cpp
@@ -41,12 +41,12 @@ void Bu::Buffer::fillReadBuf()
41{ 41{
42 if( iReadBufFill+iReadPos < iBufSize ) 42 if( iReadBufFill+iReadPos < iBufSize )
43 { 43 {
44 //printf("Buffer: Attempting to read %db.\n", iBufSize-iReadBufFill-iReadPos ); 44 printf("Buffer: Attempting to read %db.\n", iBufSize-iReadBufFill-iReadPos );
45 iReadBufFill += rNext.read( 45 iReadBufFill += rNext.read(
46 sReadBuf+iReadPos+iReadBufFill, 46 sReadBuf+iReadPos+iReadBufFill,
47 iBufSize-iReadBufFill-iReadPos 47 iBufSize-iReadBufFill-iReadPos
48 ); 48 );
49 //printf("Buffer: Read from stream, %db now in buffer.\n", iReadBufFill ); 49 printf("Buffer: Read from stream, %db now in buffer.\n", iReadBufFill );
50 } 50 }
51} 51}
52 52
@@ -152,3 +152,8 @@ void Bu::Buffer::flush()
152 } 152 }
153} 153}
154 154
155bool Bu::Buffer::isEos()
156{
157 return iReadPos == (iReadBufFill-1) && rNext.isEos();
158}
159