diff options
Diffstat (limited to 'src/stable/myriadstream.cpp')
-rw-r--r-- | src/stable/myriadstream.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/stable/myriadstream.cpp b/src/stable/myriadstream.cpp index b2ed75e..50c6924 100644 --- a/src/stable/myriadstream.cpp +++ b/src/stable/myriadstream.cpp | |||
@@ -17,6 +17,9 @@ | |||
17 | using Bu::sio; | 17 | using Bu::sio; |
18 | using Bu::Fmt; | 18 | using Bu::Fmt; |
19 | #endif | 19 | #endif |
20 | #include "bu/sio.h" | ||
21 | |||
22 | #define TRACE( x ) Bu::println("%1:%2: %3: %4 - %5").arg(__FILE__).arg( __LINE__ ).arg(__PRETTY_FUNCTION__).arg(rMyriad.sStore.getLocation()).arg(x) | ||
20 | 23 | ||
21 | Bu::MyriadStream::MyriadStream( Bu::Myriad &rMyriad, | 24 | Bu::MyriadStream::MyriadStream( Bu::Myriad &rMyriad, |
22 | Bu::Myriad::Stream *pStream ) : | 25 | Bu::Myriad::Stream *pStream ) : |
@@ -205,7 +208,9 @@ Bu::size Bu::MyriadStream::write( const void *pBuf, Bu::size nBytes ) | |||
205 | iAmnt | 208 | iAmnt |
206 | ); | 209 | ); |
207 | iPos += iAmnt; | 210 | iPos += iAmnt; |
211 | TRACE(Bu::String("Stream=%1 - pStream->iSize(%2) += iAmnt(%3)").arg(pStream->iId).arg( pStream->iSize ).arg(iAmnt).end()); | ||
208 | pStream->iSize += iAmnt; | 212 | pStream->iSize += iAmnt; |
213 | TRACE(Bu::String("Stream=%1 - pStream->iSize = %2").arg(pStream->iId).arg( pStream->iSize ).end()); | ||
209 | rMyriad.headerChanged(); | 214 | rMyriad.headerChanged(); |
210 | pBuf = &((char *)pBuf)[iAmnt]; | 215 | pBuf = &((char *)pBuf)[iAmnt]; |
211 | iLeft -= iAmnt; | 216 | iLeft -= iAmnt; |