MCPcopy Create free account
hub / github.com/beefytech/Beef / Seek

Method Seek

IDEHelper/Linker/BlCodeView.cpp:395–406  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

393}
394
395void BlCvStreamReader::Seek(int size)
396{
397 while (mCurBlockPos + size > mCurBlockEnd)
398 {
399 int readBytes = (int)(mCurBlockEnd - mCurBlockPos);
400 size -= readBytes;
401 mBlockIdx++;
402 mCurBlockPos = (uint8*)mMsf->mBlocks[mCurStream->mBlocks[mBlockIdx]]->mData;
403 mCurBlockEnd = mCurBlockPos + CV_BLOCK_SIZE;
404 }
405 mCurBlockPos += size;
406}
407
408int BlCvStreamReader::GetStreamPos()
409{

Callers 1

FinishSymRecordsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected