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

Method CircularBuffer

examples/ApplicationLib/CircularBuffer.cpp:32–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30#include <stddef.h>
31
32CircularBuffer::CircularBuffer(int _capacity) :
33 index(0), outdex(0), capacity(_capacity), empty(true), full(false)
34{
35 buffer = new int[(size_t) this->capacity];
36}
37
38CircularBuffer::~CircularBuffer()
39{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected