Add Modulo Wrap-Around Logic
@mcquerol is already working on this.
Since May 8, 2025.
Assessment
This issue has not been assessed yet.
Description
Goal: Prevent readIndex and writeIndex from exceeding array bounds.
- Modify
write()andread()to use % N after incrementing indexes. - Optional: create a helper function
wrap(size_t index)to improve readability.
- 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#2 · 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