MCPcopy Create free account
hub / github.com/OpenEarable/open-earable / CircularBlockBuffer

Method CircularBlockBuffer

src/utils/CircularBlockBuffer.cpp:7–12  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5#define negativeOffset(p,n) (p - n < 0 ? p - n + _blockCount : p - n)
6
7CircularBlockBuffer::CircularBlockBuffer() :
8 _blockCount(DEFAULT_CBB_TOTAL_COUNT),
9 _blockSize(DEFAULT_CBB_BLOCK_SIZE)
10{
11 // reset();
12}
13
14CircularBlockBuffer::CircularBlockBuffer(int blockSize, int blockCount) {
15 setSizes(blockSize, blockCount); // reset in setSize

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected