MCPcopy Create free account
hub / github.com/cuberite/cuberite / Size

Method Size

src/OSSupport/Queue.h:142–146  ·  view source on GitHub ↗

Returns the size at time of being called. Do not use to determine whether to call DequeueItem(), use TryDequeueItem() instead

Source from the content-addressed store, hash-verified

140 /// Returns the size at time of being called.
141 /// Do not use to determine whether to call DequeueItem(), use TryDequeueItem() instead
142 size_t Size(void)
143 {
144 cCSLock Lock(m_CS);
145 return m_Contents.size();
146 }
147
148
149 /// Removes the item from the queue. If there are multiple such items, only the first one is removed.

Callers 3

AddRandomRareDropItemMethod · 0.45
GetLoadQueueLengthMethod · 0.45
GetSaveQueueLengthMethod · 0.45

Calls 1

sizeMethod · 0.80

Tested by

no test coverage detected