MCPcopy Create free account
hub / github.com/ddnet/ddnet / Prev

Method Prev

src/engine/shared/ringbuffer.cpp:167–179  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

165}
166
167void *CRingBufferBase::Prev(void *pCurrent)
168{
169 CItem *pItem = ((CItem *)pCurrent) - 1;
170
171 while(true)
172 {
173 pItem = PrevBlock(pItem);
174 if(pItem == m_pProduce)
175 return nullptr;
176 if(!pItem->m_Free)
177 return pItem + 1;
178 }
179}
180
181void *CRingBufferBase::Next(void *pCurrent)
182{

Callers 8

OnInputMethod · 0.45
GetLinesToScrollMethod · 0.45
UpdateSearchMethod · 0.45
OnRenderMethod · 0.45
OnInputMethod · 0.45
chat.cppFile · 0.45
ScaleMethod · 0.45
InsertAtMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected