summaryrefslogtreecommitdiff
path: root/src/myriadstream.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/myriadstream.cpp')
-rw-r--r--src/myriadstream.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/myriadstream.cpp b/src/myriadstream.cpp
index 6623b2b..74dca04 100644
--- a/src/myriadstream.cpp
+++ b/src/myriadstream.cpp
@@ -6,15 +6,18 @@
6 */ 6 */
7 7
8#include "bu/myriadstream.h" 8#include "bu/myriadstream.h"
9#include "bu/sio.h"
10
11using Bu::sio;
12using Bu::Fmt;
13 9
14#include <string.h> 10#include <string.h>
15 11
16// #define MYRIAD_STREAM_DEBUG 1 12// #define MYRIAD_STREAM_DEBUG 1
17 13
14#ifdef MYRIAD_STREAM_DEBUG
15#include "bu/sio.h"
16
17using Bu::sio;
18using Bu::Fmt;
19#endif
20
18Bu::MyriadStream::MyriadStream( Bu::Myriad &rMyriad, 21Bu::MyriadStream::MyriadStream( Bu::Myriad &rMyriad,
19 Bu::Myriad::Stream *pStream ) : 22 Bu::Myriad::Stream *pStream ) :
20 rMyriad( rMyriad ), 23 rMyriad( rMyriad ),
@@ -203,6 +206,7 @@ size_t Bu::MyriadStream::write( const void *pBuf, size_t nBytes )
203 ); 206 );
204 iPos += iAmnt; 207 iPos += iAmnt;
205 pStream->iSize += iAmnt; 208 pStream->iSize += iAmnt;
209 rMyriad.headerChanged();
206 pBuf = &((char *)pBuf)[iAmnt]; 210 pBuf = &((char *)pBuf)[iAmnt];
207 iLeft -= iAmnt; 211 iLeft -= iAmnt;
208 } 212 }