MCPcopy Create free account
hub / github.com/cpputest/cpputest / Get

Method Get

examples/ApplicationLib/CircularBuffer.cpp:62–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60}
61
62int CircularBuffer::Get()
63{
64 int result = -1;
65 full = false;
66
67 if (!empty) {
68 result = buffer[outdex];
69 outdex = Next(outdex);
70 if (outdex == index) empty = true;
71 }
72 return result;
73}
74
75int CircularBuffer::Capacity()
76{

Callers 2

removeFromQueueFunction · 0.80
TESTFunction · 0.80

Calls

no outgoing calls

Tested by 2

removeFromQueueFunction · 0.64
TESTFunction · 0.64