Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/abbeycode/UnrarKit
/ GetBlockSize
Method
GetBlockSize
Libraries/unrar/unpack50frag.cpp:97–103 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
95
96
97
size_t FragmentedWindow::GetBlockSize(size_t StartPos,size_t RequiredSize)
98
{
99
for (uint I=0;I<ASIZE(MemSize);I++)
100
if (StartPos<MemSize[I])
101
return Min(MemSize[I]-StartPos,RequiredSize);
102
return 0; // Must never be here.
103
}
Callers
1
UnpWriteArea
Method · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected