| 330 | } |
| 331 | |
| 332 | void BlCvStreamReader::Open(BlCVStream* stream) |
| 333 | { |
| 334 | mCurStream = stream; |
| 335 | if (!mCurStream->mBlocks.empty()) |
| 336 | { |
| 337 | mBlockIdx = 0; |
| 338 | mCurBlockPos = (uint8*)mMsf->mBlocks[stream->mBlocks[mBlockIdx]]->mData; |
| 339 | mCurBlockEnd = mCurBlockPos + CV_BLOCK_SIZE; |
| 340 | } |
| 341 | else |
| 342 | { |
| 343 | mBlockIdx = -1; |
| 344 | mCurBlockPos = NULL; |
| 345 | mCurBlockEnd = NULL; |
| 346 | } |
| 347 | } |
| 348 | |
| 349 | // Pass NULL to data to make sure we have a mutable pointer into the stream. This can |
| 350 | // only work if we know the alignment of a stream and we are reading an aligned member |
no test coverage detected