Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
53
void 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
62
int CircularBuffer::Get()
63
{
Callers
2
fillTheQueue
Function · 0.80
TEST
Function · 0.80
Calls
no outgoing calls
Tested by
2
fillTheQueue
Function · 0.64
TEST
Function · 0.64