diff options
Diffstat (limited to 'src/nids.cpp')
-rw-r--r-- | src/nids.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/nids.cpp b/src/nids.cpp index 00d5f2b..23c11b0 100644 --- a/src/nids.cpp +++ b/src/nids.cpp | |||
@@ -114,8 +114,8 @@ void Bu::Nids::initialize( int iBlockSize, int iPreAllocate ) | |||
114 | 114 | ||
115 | void Bu::Nids::updateHeader() | 115 | void Bu::Nids::updateHeader() |
116 | { | 116 | { |
117 | // if( !sStore.canWrite() ) | 117 | if( !sStore.canWrite() ) |
118 | // return; | 118 | return; |
119 | sStore.setPos( 10 ); // Skip the magic number, version, bpi, block size | 119 | sStore.setPos( 10 ); // Skip the magic number, version, bpi, block size |
120 | sStore.write( &iBlocks, 4 ); | 120 | sStore.write( &iBlocks, 4 ); |
121 | sStore.write( &iUsed, 4 ); | 121 | sStore.write( &iUsed, 4 ); |
@@ -222,8 +222,8 @@ void Bu::Nids::setBlock( uint32_t uIndex, Bu::Nids::Block *pBlock ) | |||
222 | 222 | ||
223 | void Bu::Nids::updateStreamSize( uint32_t uIndex, uint32_t uSize ) | 223 | void Bu::Nids::updateStreamSize( uint32_t uIndex, uint32_t uSize ) |
224 | { | 224 | { |
225 | // if( !sStore.canWrite() ) | 225 | if( !sStore.canWrite() ) |
226 | // return; | 226 | return; |
227 | sStore.setPos( iBlockStart + (iBlockSize*uIndex)+4*3 ); | 227 | sStore.setPos( iBlockStart + (iBlockSize*uIndex)+4*3 ); |
228 | sStore.write( &uSize, 4 ); | 228 | sStore.write( &uSize, 4 ); |
229 | } | 229 | } |
@@ -240,8 +240,8 @@ uint32_t Bu::Nids::getNextBlock( uint32_t uIndex, | |||
240 | sStore.setPos( iBlockStart + (iBlockSize*uIndex)+1*4 ); | 240 | sStore.setPos( iBlockStart + (iBlockSize*uIndex)+1*4 ); |
241 | sStore.write( &uNew, 4 ); | 241 | sStore.write( &uNew, 4 ); |
242 | getBlock( uNew, pBlock ); | 242 | getBlock( uNew, pBlock ); |
243 | printf("Allocated new block (%u) for stream %u.\n", | 243 | //printf("Allocated new block (%u) for stream %u.\n", |
244 | uNew, pBlock->uFirstBlock ); | 244 | // uNew, pBlock->uFirstBlock ); |
245 | } | 245 | } |
246 | else | 246 | else |
247 | { | 247 | { |