MCPcopy Create free account
hub / github.com/LUX-Core/lux / CleanupUsedNodes

Method CleanupUsedNodes

src/cryptopp/queue.cpp:245–258  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

243}
244
245void ByteQueue::CleanupUsedNodes()
246{
247 // Test for m_head due to Enterprise Anlysis finding
248 while (m_head && m_head != m_tail && m_head->UsedUp())
249 {
250 ByteQueueNode *temp=m_head;
251 m_head=m_head->next;
252 delete temp;
253 }
254
255 // Test for m_head due to Enterprise Anlysis finding
256 if (m_head && m_head->CurrentSize() == 0)
257 m_head->Clear();
258}
259
260void ByteQueue::LazyPut(const byte *inString, size_t size)
261{

Callers

nothing calls this directly

Calls 3

UsedUpMethod · 0.80
CurrentSizeMethod · 0.45
ClearMethod · 0.45

Tested by

no test coverage detected