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

Method setSizes

src/utils/CircularBlockBuffer.cpp:22–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20}
21
22void CircularBlockBuffer::setSizes(int blockSize, int blockCount) {
23 if (!blockSize || !blockCount) return;
24
25 _blockSize = blockSize;
26 _blockCount = blockCount;
27 _totalSize = blockSize * blockCount;
28
29 reset();
30}
31
32uint8_t *CircularBlockBuffer::get_buffer() {
33 return _buffer;

Callers 1

setBlockBufferSizesMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected