MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / frontIndex

Method frontIndex

app/src/DSP.h:149–149  ·  view source on GitHub ↗

* @brief Returns the storage index of the front (oldest) element. Pair with * `nextIndex()` (or `storageMask()`) to walk the ring without modulo. */

Source from the content-addressed store, hash-verified

147 * `nextIndex()` (or `storageMask()`) to walk the ring without modulo.
148 */
149 [[nodiscard]] std::size_t frontIndex() const { return m_start; }
150
151 /**
152 * @brief Returns `(idx + 1) & storageMask` -- the next storage position when

Callers 4

spanFromFixedQueueFunction · 0.80
updateDataMethod · 0.80
updateDataMethod · 0.80
updateDataMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected