Add Overwrite Policy Flag
@mcquerol is already working on this.
Since May 8, 2025.
Assessment
This issue has not been assessed yet.
Description
Goal: Allow buffer to optionally overwrite oldest data when full.
- Implementation:
- Add bool allowOverwrite as a constructor argument (default false).
- In write(), check this flag:
- If true, overwrite oldest and advance readIndex.
- If false, behave as current (do not write).
- Dominant language
- C++
- Stars
- 1
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from mcquerol/ringbuffer-cpp
-
add github pages Opendocumentation
mcquerol/ringbuffer-cpp#5 · 1 assignee ·
-
add Doxygen Opendocumentation
mcquerol/ringbuffer-cpp#4 · 1 assignee ·
-
add README.md Opendocumentation
mcquerol/ringbuffer-cpp#3 · 1 assignee ·
-
enhancement
mcquerol/ringbuffer-cpp#1 · 1 assignee ·
All issues in mcquerol/ringbuffer-cpp
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
objectionary/eo-graphs#74 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 95/100
-
enhancement
Difficulty 1/5 Under an hour Newbie friendliness 88/100
QuantStack/git2cpp#187 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100