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

Method GrowFront

BeefySysLib/util/BeefPerf.cpp:229–237  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

227}
228
229void CircularBuffer::GrowFront(int addSize)
230{
231 if (mDataSize + addSize > mBufSize)
232 {
233 Resize(mDataSize + addSize);
234 }
235 mDataSize += addSize;
236 mTail = (mTail + mBufSize - addSize) % mBufSize;
237}
238
239int CircularBuffer::GetSize()
240{

Callers

nothing calls this directly

Calls 1

ResizeFunction · 0.85

Tested by

no test coverage detected