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

Method Put

examples/ApplicationLib/CircularBuffer.cpp:53–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51}
52
53void CircularBuffer::Put(int i)
54{
55 empty = false;
56 buffer[index] = i;
57 index = Next(index);
58 if (full) outdex = Next(outdex);
59 else if (index == outdex) full = true;
60}
61
62int CircularBuffer::Get()
63{

Callers 2

fillTheQueueFunction · 0.80
TESTFunction · 0.80

Calls

no outgoing calls

Tested by 2

fillTheQueueFunction · 0.64
TESTFunction · 0.64