aboutsummaryrefslogtreecommitdiff
path: root/src/buffer.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-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