Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/beefytech/Beef
/ GrowReserve
Method
GrowReserve
BeefySysLib/util/BeefPerf.cpp:216–221 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
214
}
215
216
void CircularBuffer::GrowReserve(int addSize)
217
{
218
if (mDataSize + addSize <= mBufSize)
219
return;
220
Resize(max(mDataSize + addSize, mDataSize + mDataSize/2));
221
}
222
223
void CircularBuffer::Grow(int addSize)
224
{
Callers
1
StartCmd
Method · 0.80
Calls
1
Resize
Function · 0.85
Tested by
no test coverage detected